public static enum DirtiesContext.ClassMode extends Enum<DirtiesContext.ClassMode>
@DirtiesContext
is interpreted when used to annotate a test class.Enum Constant and Description |
---|
AFTER_CLASS
The associated
ApplicationContext will be marked as
dirty after the test class. |
AFTER_EACH_TEST_METHOD
The associated
ApplicationContext will be marked as
dirty after each test method in the class. |
Modifier and Type | Method and Description |
---|---|
static DirtiesContext.ClassMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirtiesContext.ClassMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DirtiesContext.ClassMode AFTER_CLASS
ApplicationContext
will be marked as
dirty after the test class.public static final DirtiesContext.ClassMode AFTER_EACH_TEST_METHOD
ApplicationContext
will be marked as
dirty after each test method in the class.public static DirtiesContext.ClassMode[] values()
for (DirtiesContext.ClassMode c : DirtiesContext.ClassMode.values()) System.out.println(c);
public static DirtiesContext.ClassMode 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 null