Package org.jvnet.hk2.testing.junit
Enum ServiceLocatorTestRule.ServiceLocatorIsolation
- java.lang.Object
-
- java.lang.Enum<ServiceLocatorTestRule.ServiceLocatorIsolation>
-
- org.jvnet.hk2.testing.junit.ServiceLocatorTestRule.ServiceLocatorIsolation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServiceLocatorTestRule.ServiceLocatorIsolation>
- Enclosing class:
- ServiceLocatorTestRule<T>
public static enum ServiceLocatorTestRule.ServiceLocatorIsolation extends java.lang.Enum<ServiceLocatorTestRule.ServiceLocatorIsolation>
Anenum
describing possibleServiceLocator
isolation levels for JUnit tests.- Since:
- 2.4.0-b33
- See Also:
ServiceLocatorTestRule.getServiceLocatorIsolation()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PER_TEST
AServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test method.PER_TEST_CLASS
AServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test class.
-
Constructor Summary
Constructors Modifier Constructor Description private
ServiceLocatorIsolation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceLocatorTestRule.ServiceLocatorIsolation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServiceLocatorTestRule.ServiceLocatorIsolation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PER_TEST
public static final ServiceLocatorTestRule.ServiceLocatorIsolation PER_TEST
AServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test method.- See Also:
PER_TEST_CLASS
-
PER_TEST_CLASS
public static final ServiceLocatorTestRule.ServiceLocatorIsolation PER_TEST_CLASS
AServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test class.- See Also:
PER_TEST
,ClassRule
-
-
Method Detail
-
values
public static ServiceLocatorTestRule.ServiceLocatorIsolation[] 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 (ServiceLocatorTestRule.ServiceLocatorIsolation c : ServiceLocatorTestRule.ServiceLocatorIsolation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceLocatorTestRule.ServiceLocatorIsolation valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-