Package org.springframework.test.context

This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.

See:
          Description

Interface Summary
ContextLoader Strategy interface for loading an application context.
TestExecutionListener TestExecutionListener defines a listener API for reacting to test execution events published by the TestContextManager with which the listener is registered.
 

Class Summary
TestContext TestContext encapsulates the context in which a test is executed, agnostic of the actual testing framework in use.
TestContextManager TestContextManager is the main entry point into the Spring TestContext Framework, which provides support for loading and accessing application contexts, dependency injection of test instances, transactional execution of test methods, etc.
 

Annotation Types Summary
ContextConfiguration ContextConfiguration defines class-level metadata which can be used to instruct client code with regard to how to load and configure an ApplicationContext.
TestExecutionListeners TestExecutionListeners defines class-level metadata for configuring which TestExecutionListeners should be registered with a TestContextManager.
 

Package org.springframework.test.context Description

This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use. The same techniques and annotation-based configuration used in, for example, a JUnit 3.8 environment can also be applied to tests written with JUnit 4.5+, TestNG, etc.

In addition to providing generic and extensible testing infrastructure, the Spring TestContext Framework provides out-of-the-box support for Spring-specific integration testing functionality such as context management and caching, dependency injection of test fixtures, and transactional test management with default rollback semantics.