Package | Description |
---|---|
org.springframework.test.annotation |
Support classes for annotation-driven tests.
|
org.springframework.test.context.support |
Support classes for the Spring TestContext Framework.
|
Modifier and Type | Method and Description |
---|---|
static DirtiesContext.MethodMode |
DirtiesContext.MethodMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DirtiesContext.MethodMode[] |
DirtiesContext.MethodMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractDirtiesContextTestExecutionListener.beforeOrAfterTestMethod(TestContext testContext,
DirtiesContext.MethodMode requiredMethodMode,
DirtiesContext.ClassMode requiredClassMode)
Perform the actual work for
AbstractTestExecutionListener.beforeTestMethod(org.springframework.test.context.TestContext) and AbstractTestExecutionListener.afterTestMethod(org.springframework.test.context.TestContext)
by dirtying the context if appropriate (i.e., according to the required modes). |