public static enum DirtiesContext.HierarchyMode extends Enum<DirtiesContext.HierarchyMode>
@DirtiesContextis used in a test whose context is configured as part of a hierarchy via
|Enum Constant and Description|
The context cache will be cleared using an exhaustive algorithm that includes not only the current level but also all other context hierarchies that share an ancestor context common to the current test.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final DirtiesContext.HierarchyMode EXHAUSTIVE
ApplicationContexts that reside in a subhierarchy of
the common ancestor context will be removed from the context cache and
public static final DirtiesContext.HierarchyMode CURRENT_LEVEL
ApplicationContextfor the current level in the context hierarchy and all contexts in subhierarchies of the current level will be removed from the context cache and closed.
The current level refers to the
at the lowest level in the context hierarchy that is visible from the
public static DirtiesContext.HierarchyMode values()
for (DirtiesContext.HierarchyMode c : DirtiesContext.HierarchyMode.values()) System.out.println(c);
public static DirtiesContext.HierarchyMode valueOf(String name)