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