public enum LambdaTestMode extends Enum<LambdaTestMode>
Enum Constant and Description |
---|
NORMAL
Execution mode with no particular runtime constraints.
|
SERIALIZATION
Execution mode where tests are executed for testing lambda serialization
and deserialization.
|
Modifier and Type | Method and Description |
---|---|
static LambdaTestMode |
getMode() |
static boolean |
isNormalMode() |
static LambdaTestMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LambdaTestMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LambdaTestMode NORMAL
public static final LambdaTestMode SERIALIZATION
This mode may be queried by tests or data supplied by data providers, which cannot otherwise be assigned to the test group serialization-hostile, to not execute or declare serialization-hostile code or data.
This mode is enabled if the boolean system property
org.openjdk.java.util.stream.sand.mode
is declared with a
true
value.
public static LambdaTestMode[] values()
for (LambdaTestMode c : LambdaTestMode.values()) System.out.println(c);
public static LambdaTestMode 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 nullpublic static LambdaTestMode getMode()
public static boolean isNormalMode()
true
if normal test mode.