Package org.springframework.test.annotation
Support classes for annotation-driven tests.
Interface Summary Interface Description ProfileValueSource Strategy interface for retrieving profile values for a given testing environment.Class Summary Class Description ProfileValueUtils General utility methods for working with profile values.SystemProfileValueSource Implementation ofProfileValueSourcewhich uses system properties as the underlying source.TestAnnotationUtils Collection of utility methods for working with Spring's core testing annotations.Enum Summary Enum Description DirtiesContext.ClassMode Defines modes which determine how@DirtiesContextis interpreted when used to annotate a test class.DirtiesContext.HierarchyMode 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.DirtiesContext.MethodMode Defines modes which determine how@DirtiesContextis interpreted when used to annotate a test method.Annotation Types Summary Annotation Type Description Commit @Commitis a test annotation that is used to indicate that a test-managed transaction should be committed after the test method has completed.DirtiesContext Test annotation which indicates that theApplicationContextassociated with a test is dirty and should therefore be closed and removed from the context cache.IfProfileValue Test annotation to indicate whether a test is enabled or disabled for a specific testing profile.ProfileValueSourceConfiguration ProfileValueSourceConfigurationis a class-level annotation which is used to specify what type ofProfileValueSourceto use when retrieving profile values configured via the@IfProfileValueannotation.Repeat Test annotation to indicate that a test method should be invoked repeatedly.Rollback @Rollbackis a test annotation that is used to indicate whether a test-managed transaction should be rolled back after the test method has completed.Timed Test-specific annotation to indicate that a test method has to finish execution in a specified time period.