Package org.springframework.test.annotation


@NullMarked package org.springframework.test.annotation
Support classes for annotation-driven tests.
  • Class
    Description
    @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 the ApplicationContext 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.
    since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter
    Deprecated.
    since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter
    Deprecated.
    since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter
    Deprecated.
    since Spring Framework 7.0 with no replacement
    Deprecated.
    since Spring Framework 7.0 in favor of the SpringExtension 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 the SpringExtension and JUnit Jupiter
    Deprecated.
    since Spring Framework 7.0 with no replacement
    Deprecated.
    since Spring Framework 7.0 in favor of the SpringExtension and JUnit Jupiter