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:
Serializable
,Comparable<ServiceLocatorTestRule.ServiceLocatorIsolation>
- Enclosing class:
ServiceLocatorTestRule<T>
public static enum ServiceLocatorTestRule.ServiceLocatorIsolation
extends Enum<ServiceLocatorTestRule.ServiceLocatorIsolation>
An
enum
describing possible ServiceLocator
isolation levels for JUnit tests.- Since:
- 2.4.0-b33
- See Also:
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test method.AServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PER_TEST
AServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test method.- See Also:
-
PER_TEST_CLASS
AServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired isolation level is per JUnit test class.- See Also:
-
-
Constructor Details
-
ServiceLocatorIsolation
private ServiceLocatorIsolation()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-