Package org.jvnet.hk2.testing.junit
Enum Class ServiceLocatorTestRule.ServiceLocatorIsolation
java.lang.Object
java.lang.Enum<ServiceLocatorTestRule.ServiceLocatorIsolation>
org.jvnet.hk2.testing.junit.ServiceLocatorTestRule.ServiceLocatorIsolation
- All Implemented Interfaces:
Serializable,Comparable<ServiceLocatorTestRule.ServiceLocatorIsolation>,Constable
- 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
- Author:
- Laird Nelson
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAServiceLocatorTestRule.ServiceLocatorIsolationindicating that the desired isolation level is per JUnit test method.AServiceLocatorTestRule.ServiceLocatorIsolationindicating that the desired isolation level is per JUnit test class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PER_TEST
AServiceLocatorTestRule.ServiceLocatorIsolationindicating that the desired isolation level is per JUnit test method.- See Also:
-
PER_TEST_CLASS
AServiceLocatorTestRule.ServiceLocatorIsolationindicating that the desired isolation level is per JUnit test class.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-