Package org.mockito
Enum Mock.Strictness
- java.lang.Object
-
- java.lang.Enum<Mock.Strictness>
-
- org.mockito.Mock.Strictness
-
- All Implemented Interfaces:
Serializable
,Comparable<Mock.Strictness>
- Enclosing class:
- Mock
public static enum Mock.Strictness extends Enum<Mock.Strictness>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LENIENT
STRICT_STUBS
TEST_LEVEL_DEFAULT
Default value used to indicate the mock does not override the test level strictness.WARN
SeeStrictness.WARN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Mock.Strictness
valueOf(String name)
Returns the enum constant of this type with the specified name.static Mock.Strictness[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TEST_LEVEL_DEFAULT
public static final Mock.Strictness TEST_LEVEL_DEFAULT
Default value used to indicate the mock does not override the test level strictness.- Since:
- 4.6.1
-
LENIENT
public static final Mock.Strictness LENIENT
-
WARN
public static final Mock.Strictness WARN
SeeStrictness.WARN
-
STRICT_STUBS
public static final Mock.Strictness STRICT_STUBS
-
-
Method Detail
-
values
public static Mock.Strictness[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Mock.Strictness c : Mock.Strictness.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mock.Strictness valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-