Spring's
TestContext
framework is a generic, annotation-driven framework for unit and integration testing. The framework's resources are located in the org.springframework.test.context
package. This framework believes in the design paradigm "convention over configuration," which means that the framework provides reasonable defaults for every configuration; the user can still override the unconventional aspects through annotation-based configuration. The TestContext
framework provides support for JUnit and TestNG, such as a custom JUnit runner that allows non-invasive POJO test classes.
The framework consists of two classes and three interfaces. The following are the classes: