Package | Description |
---|---|
org.springframework.test.annotation |
Support classes for annotation-driven tests.
|
org.springframework.test.context |
This package contains the Spring TestContext Framework which
provides annotation-driven unit and integration testing support that is
agnostic of the actual testing framework in use.
|
org.springframework.test.context.cache |
Support for context caching within the Spring TestContext Framework.
|
org.springframework.test.context.support |
Support classes for the Spring TestContext Framework.
|
Modifier and Type | Method and Description |
---|---|
static DirtiesContext.HierarchyMode |
DirtiesContext.HierarchyMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirtiesContext.HierarchyMode[] |
DirtiesContext.HierarchyMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
CacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration,
DirtiesContext.HierarchyMode hierarchyMode)
Remove the application context for the
supplied
MergedContextConfiguration from the ContextCache
and close it if it is
an instance of ConfigurableApplicationContext . |
void |
TestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode)
Call this method to signal that the application
context associated with this test context is dirty and should be
removed from the context cache.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultCacheAwareContextLoaderDelegate.closeContext(MergedContextConfiguration mergedContextConfiguration,
DirtiesContext.HierarchyMode hierarchyMode) |
void |
DefaultContextCache.remove(MergedContextConfiguration key,
DirtiesContext.HierarchyMode hierarchyMode)
Remove the context with the given key from the cache and explicitly
close
it if it is an instance of
ConfigurableApplicationContext . |
void |
ContextCache.remove(MergedContextConfiguration key,
DirtiesContext.HierarchyMode hierarchyMode)
Remove the context with the given key from the cache and explicitly
close
it if it is an instance of
ConfigurableApplicationContext . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractDirtiesContextTestExecutionListener.dirtyContext(TestContext testContext,
DirtiesContext.HierarchyMode hierarchyMode)
Mark the application context of the supplied
test context as
dirty
and set
REINJECT_DEPENDENCIES_ATTRIBUTE in the test context to true . |
void |
DefaultTestContext.markApplicationContextDirty(DirtiesContext.HierarchyMode hierarchyMode)
Mark the application context associated
with this test context as dirty (i.e., by removing it from the
context cache and closing it).
|