Package org.springframework.test.annotation
@NullMarked
package org.springframework.test.annotation
Support classes for annotation-driven tests.
-
ClassDescription
@Commit
is a test annotation that is used to indicate that a test-managed transaction should be committed after the test method has completed.Test annotation which indicates that theApplicationContext
associated with a test is dirty and should therefore be closed and removed from the context cache.Defines modes which determine how@DirtiesContext
is interpreted when used to annotate a test class.Defines modes which determine how the context cache is cleared when@DirtiesContext
is used in a test whose context is configured as part of a hierarchy via@ContextHierarchy
.Defines modes which determine how@DirtiesContext
is interpreted when used to annotate a test method.Deprecated.Deprecated.since Spring Framework 7.0 in favor of theSpringExtension
and JUnit JupiterDeprecated.since Spring Framework 7.0 in favor of theSpringExtension
and JUnit JupiterDeprecated.since Spring Framework 7.0 with no replacementDeprecated.since Spring Framework 7.0 in favor of theSpringExtension
and JUnit Jupiter@Rollback
is a test annotation that is used to indicate whether a test-managed transaction should be rolled back after the test method has completed.Deprecated.since Spring Framework 7.0 in favor of theSpringExtension
and JUnit JupiterDeprecated.since Spring Framework 7.0 with no replacementDeprecated.since Spring Framework 7.0 in favor of theSpringExtension
and JUnit Jupiter
SpringExtension
and JUnit Jupiter