Uses of Class
org.springframework.test.annotation.DirtiesContext.MethodMode
Packages that use DirtiesContext.MethodMode Package Description org.springframework.test.annotation Support classes for annotation-driven tests.org.springframework.test.context.support Support classes for the Spring TestContext Framework.Uses of DirtiesContext.MethodMode in org.springframework.test.annotation
Methods in org.springframework.test.annotation that return DirtiesContext.MethodMode Modifier and Type Method Description DirtiesContext.MethodMode
methodMode()
The mode to use when a test method is annotated with@DirtiesContext
.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.Uses of DirtiesContext.MethodMode in org.springframework.test.context.support
Methods in org.springframework.test.context.support with parameters of type DirtiesContext.MethodMode Modifier and Type Method Description protected void
AbstractDirtiesContextTestExecutionListener. beforeOrAfterTestMethod(TestContext testContext, DirtiesContext.MethodMode requiredMethodMode, DirtiesContext.ClassMode requiredClassMode)
Perform the actual work forAbstractTestExecutionListener.beforeTestMethod(org.springframework.test.context.TestContext)
andAbstractTestExecutionListener.afterTestMethod(org.springframework.test.context.TestContext)
by dirtying the context if appropriate (i.e., according to the required modes).