Package org.springframework.test.annotation
@NullMarked
package org.springframework.test.annotation
Support classes for annotation-driven tests.
-
ClassDescription
@Commitis 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 theApplicationContextassociated with a test is dirty and should therefore be closed and removed from the context cache.Defines modes which determine how@DirtiesContextis interpreted when used to annotate a test class.Defines modes which determine how the context cache is cleared when@DirtiesContextis used in a test whose context is configured as part of a hierarchy via@ContextHierarchy.Defines modes which determine how@DirtiesContextis interpreted when used to annotate a test method.Deprecated.Deprecated.since Spring Framework 7.0 in favor of theSpringExtensionand JUnit JupiterDeprecated.since Spring Framework 7.0 in favor of theSpringExtensionand JUnit JupiterDeprecated.since Spring Framework 7.0 with no replacementDeprecated.since Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupiter@Rollbackis 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 theSpringExtensionand JUnit JupiterDeprecated.since Spring Framework 7.0 with no replacementDeprecated.since Spring Framework 7.0 in favor of theSpringExtensionand JUnit Jupiter
SpringExtensionand JUnit Jupiter