AbstractJUnit4SpringContextTests()
Abstract base test class which integrates the Spring TestContext Framework with explicit ApplicationContext testing support in a JUnit environment.
Concrete subclasses should typically declare a class-level ContextConfiguration annotation to configure the ApplicationContext or . If your test does not need to load an application context, you may choose to omit the ContextConfiguration declaration and to configure the appropriate org.springframework.test.context.TestExecutionListener manually.
The following org.springframework.test.context.TestExecutionListener are configured by default:
This class serves only as a convenience for extension.
NOTE: As of Spring Framework 4.3, this class requires JUnit 4.12 or higher.
Author
Sam Brannen
Since
2.5
See Also
ContextConfigurationTestContextTestContextManagerTestExecutionListenersServletTestExecutionListenerDirtiesContextBeforeModesTestExecutionListenerDependencyInjectionTestExecutionListenerDirtiesContextTestExecutionListenerAbstractTransactionalJUnit4SpringContextTestsorg.springframework.test.context.testng.AbstractTestNGSpringContextTests