Class TestContextManager

java.lang.Object
org.springframework.test.context.TestContextManager

public class TestContextManager extends Object
TestContextManager is the main entry point into the Spring TestContext Framework.

Specifically, a TestContextManager is responsible for managing a single TestContext and signaling events to each registered TestExecutionListener at the following test execution points.

Support for loading and accessing application contexts, dependency injection of test instances, transactional execution of test methods, etc. is provided by ContextLoaders and TestExecutionListeners, which are configured via @ContextConfiguration and @TestExecutionListeners, respectively.

Bootstrapping of the TestContext, the default ContextLoader, default TestExecutionListeners, and their collaborators is performed by a TestContextBootstrapper, which is configured via @BootstrapWith.

Since:
2.5
Author:
Sam Brannen, Juergen Hoeller
See Also: