public static enum ServiceLocatorTestRule.ServiceLocatorIsolation extends Enum<ServiceLocatorTestRule.ServiceLocatorIsolation>
enum
describing possible ServiceLocator
isolation levels for JUnit tests.ServiceLocatorTestRule.getServiceLocatorIsolation()
Enum Constant and Description |
---|
PER_TEST
A
ServiceLocatorTestRule.ServiceLocatorIsolation indicating that the desired
isolation level is per JUnit test method. |
PER_TEST_CLASS
A
ServiceLocatorTestRule.ServiceLocatorIsolation indicating that the desired
isolation level is per JUnit test class. |
Modifier and Type | Method and Description |
---|---|
static ServiceLocatorTestRule.ServiceLocatorIsolation |
valueOf(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.
|
public static final ServiceLocatorTestRule.ServiceLocatorIsolation PER_TEST
ServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired
isolation level is per JUnit test method.PER_TEST_CLASS
public static final ServiceLocatorTestRule.ServiceLocatorIsolation PER_TEST_CLASS
ServiceLocatorTestRule.ServiceLocatorIsolation
indicating that the desired
isolation level is per JUnit test class.PER_TEST
,
ClassRule
public static ServiceLocatorTestRule.ServiceLocatorIsolation[] values()
for (ServiceLocatorTestRule.ServiceLocatorIsolation c : ServiceLocatorTestRule.ServiceLocatorIsolation.values()) System.out.println(c);
public static ServiceLocatorTestRule.ServiceLocatorIsolation 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 nullCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.