spring-framework / org.springframework.test.annotation / DirtiesContext / methodMode

methodMode

val methodMode: MethodMode

The mode to use when a test method is annotated with @DirtiesContext.

Defaults to AFTER_METHOD.

Setting the method mode on an annotated test class has no meaning. For class-level control, use #classMode instead.

Since
4.2