Package org.springframework.test.annotation

Support classes for annotation-driven tests.

See:
          Description

Interface Summary
ProfileValueSource Strategy interface for retrieving profile values for a given testing environment.
 

Class Summary
AbstractAnnotationAwareTransactionalTests Deprecated. as of Spring 3.0, in favor of using the listener-based test context framework (AbstractJUnit38SpringContextTests)
ProfileValueUtils General utility methods for working with profile values.
SystemProfileValueSource Implementation of ProfileValueSource which uses system properties as the underlying source.
 

Enum Summary
DirtiesContext.ClassMode Defines modes which determine how @DirtiesContext is interpreted when used to annotate a test class.
 

Annotation Types Summary
DirtiesContext Test annotation which indicates that the ApplicationContext associated with a test is dirty and should be closed: after the current test, when declared at the method level after each test method in the current test class, when declared at the class level with class mode set to AFTER_EACH_TEST_METHOD after the current test class, when declared at the class level with class mode set to AFTER_CLASS
ExpectedException Test annotation to indicate that a test method is required to throw the specified exception.
IfProfileValue Test annotation to indicate that a test is enabled for a specific testing profile or environment.
NotTransactional Deprecated. as of Spring 3.0, in favor of moving the non-transactional test method to a separate (non-transactional) test class or to a @BeforeTransaction or @AfterTransaction method.
ProfileValueSourceConfiguration ProfileValueSourceConfiguration is a class-level annotation which is used to specify what type of ProfileValueSource to use when retrieving profile values configured via the @IfProfileValue annotation.
Repeat Test annotation to indicate that a test method should be invoked repeatedly.
Rollback Test annotation to indicate whether or not the transaction for the annotated test method 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.
 

Package org.springframework.test.annotation Description

Support classes for annotation-driven tests.