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

classMode

val classMode: ClassMode

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

Defaults to AFTER_CLASS.

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

Since
3.0