Enum Constant and Description |
---|
DEFAULT
A default mock expects only recorded calls but in any order
|
NICE
A nice mock expects recorded calls in any order and returning null for other calls
|
STRICT
A strict mock expects only recorded calls and they should be replayed in their recorded order
|
Modifier and Type | Method and Description |
---|---|
static MockType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MockType NICE
public static final MockType DEFAULT
public static final MockType STRICT
public static MockType[] values()
for (MockType c : MockType.values()) System.out.println(c);
public static MockType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null