org.mockito.quality
@Incubating public enum Strictness extends Enum<Strictness>
MockitoRule.strictness(Strictness).| Enum Constant and Description |
|---|
LENIENT
No extra strictness.
|
STRICT_STUBS
Ensures clean tests, reduces test code duplication, improves debuggability.
|
WARN
Helps keeping tests clean and improves debuggability.
|
| Modifier and Type | Method and Description |
|---|---|
static Strictness |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Strictness[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Incubating public static final Strictness LENIENT
@Incubating public static final Strictness WARN
MockitoHint.
Default Mockito 2.x behavior.@Incubating public static final Strictness STRICT_STUBS
MockitoRule.strictness(Strictness).
Tentatively planned default for Mockito 3.x.public static Strictness[] values()
for (Strictness c : Strictness.values()) System.out.println(c);
public static Strictness valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null