Package org.seedstack.seed.testing
Enum LaunchMode
- java.lang.Object
-
- java.lang.Enum<LaunchMode>
-
- org.seedstack.seed.testing.LaunchMode
-
- All Implemented Interfaces:
Serializable,Comparable<LaunchMode>
public enum LaunchMode extends Enum<LaunchMode>
Enumeration of testing environment launch modes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYThis denotes that no particular launch mode is requested.NONEWith this launch mode, no SeedStack environment is used for any test.PER_TESTWith this launch mode, a different SeedStack environment is used for each test.PER_TEST_CLASSWith this launch mode, a unique SeedStack environment is used for the whole test class.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LaunchModevalueOf(String name)Returns the enum constant of this type with the specified name.static LaunchMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PER_TEST_CLASS
public static final LaunchMode PER_TEST_CLASS
With this launch mode, a unique SeedStack environment is used for the whole test class.
-
PER_TEST
public static final LaunchMode PER_TEST
With this launch mode, a different SeedStack environment is used for each test.
-
NONE
public static final LaunchMode NONE
With this launch mode, no SeedStack environment is used for any test.
-
ANY
public static final LaunchMode ANY
This denotes that no particular launch mode is requested.
-
-
Method Detail
-
values
public static LaunchMode[] 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 (LaunchMode c : LaunchMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LaunchMode 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
-
-