Package | Description |
---|---|
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.
|
org.springframework.test.context.event |
Test event support classes for the Spring TestContext Framework.
|
org.springframework.test.context.jdbc |
JDBC support classes for the Spring TestContext Framework,
including support for declarative SQL script execution via
@Sql . |
org.springframework.test.context.support |
Support classes for the Spring TestContext Framework.
|
org.springframework.test.context.transaction |
Transactional support classes for the Spring TestContext Framework.
|
org.springframework.test.context.web |
Web support classes for the Spring TestContext Framework.
|
Modifier and Type | Method and Description |
---|---|
List<TestExecutionListener> |
TestContextBootstrapper.getTestExecutionListeners()
Get a list of newly instantiated
TestExecutionListeners
for the test class in the BootstrapContext associated with this bootstrapper. |
List<TestExecutionListener> |
TestContextManager.getTestExecutionListeners()
Get the current
TestExecutionListeners
registered for this TestContextManager . |
Modifier and Type | Method and Description |
---|---|
void |
TestContextManager.registerTestExecutionListeners(TestExecutionListener... testExecutionListeners)
Register the supplied array of
TestExecutionListeners
by appending them to the list of listeners used by this TestContextManager . |
Modifier and Type | Method and Description |
---|---|
void |
TestContextManager.registerTestExecutionListeners(List<TestExecutionListener> testExecutionListeners)
Register the supplied list of
TestExecutionListeners
by appending them to the list of listeners used by this TestContextManager . |
Modifier and Type | Class and Description |
---|---|
class |
ApplicationEventsTestExecutionListener
TestExecutionListener which provides support for ApplicationEvents . |
class |
EventPublishingTestExecutionListener
TestExecutionListener that publishes test execution events to the
ApplicationContext
for the currently executing test. |
Modifier and Type | Class and Description |
---|---|
class |
SqlScriptsTestExecutionListener
TestExecutionListener that provides support for executing SQL
scripts and inlined statements
configured via the @Sql annotation. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractDirtiesContextTestExecutionListener
Abstract base class for
TestExecutionListener implementations that
provide support for marking the ApplicationContext associated with
a test as dirty for both test classes and test methods annotated
with the @DirtiesContext annotation. |
class |
AbstractTestExecutionListener
Abstract ordered implementation of the
TestExecutionListener API. |
class |
DependencyInjectionTestExecutionListener
TestExecutionListener which provides support for dependency
injection and initialization of test instances. |
class |
DirtiesContextBeforeModesTestExecutionListener
TestExecutionListener which provides support for marking the
ApplicationContext associated with a test as dirty for
both test classes and test methods annotated with the
@DirtiesContext annotation. |
class |
DirtiesContextTestExecutionListener
TestExecutionListener which provides support for marking the
ApplicationContext associated with a test as dirty for
both test classes and test methods annotated with the
@DirtiesContext annotation. |
Modifier and Type | Method and Description |
---|---|
protected Set<Class<? extends TestExecutionListener>> |
AbstractTestContextBootstrapper.getDefaultTestExecutionListenerClasses()
Get the default
TestExecutionListener classes for this bootstrapper. |
List<TestExecutionListener> |
AbstractTestContextBootstrapper.getTestExecutionListeners() |
Modifier and Type | Class and Description |
---|---|
class |
TransactionalTestExecutionListener
TestExecutionListener that provides support for executing tests
within test-managed transactions by honoring Spring's
@Transactional annotation. |
Modifier and Type | Class and Description |
---|---|
class |
ServletTestExecutionListener
TestExecutionListener which provides mock Servlet API support to
WebApplicationContexts loaded by the Spring
TestContext Framework. |