类的使用
org.springframework.test.context.support.AbstractTestExecutionListener
使用AbstractTestExecutionListener的程序包 程序包 说明 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.org.springframework.test.context.event中AbstractTestExecutionListener的使用
org.springframework.test.context.event中AbstractTestExecutionListener的子类 修饰符和类型 类 说明 class
EventPublishingTestExecutionListener
TestExecutionListener
that publishes test execution events to theApplicationContext
for the currently executing test.org.springframework.test.context.jdbc中AbstractTestExecutionListener的使用
org.springframework.test.context.jdbc中AbstractTestExecutionListener的子类 修饰符和类型 类 说明 class
SqlScriptsTestExecutionListener
TestExecutionListener
that provides support for executing SQLscripts
and inlinedstatements
configured via the@Sql
annotation.org.springframework.test.context.support中AbstractTestExecutionListener的使用
org.springframework.test.context.support中AbstractTestExecutionListener的子类 修饰符和类型 类 说明 class
AbstractDirtiesContextTestExecutionListener
Abstract base class forTestExecutionListener
implementations that provide support for marking theApplicationContext
associated with a test as dirty for both test classes and test methods annotated with the@DirtiesContext
annotation.class
DependencyInjectionTestExecutionListener
TestExecutionListener
which provides support for dependency injection and initialization of test instances.class
DirtiesContextBeforeModesTestExecutionListener
TestExecutionListener
which provides support for marking theApplicationContext
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 theApplicationContext
associated with a test as dirty for both test classes and test methods annotated with the@DirtiesContext
annotation.org.springframework.test.context.transaction中AbstractTestExecutionListener的使用
org.springframework.test.context.transaction中AbstractTestExecutionListener的子类 修饰符和类型 类 说明 class
TransactionalTestExecutionListener
TestExecutionListener
that provides support for executing tests within test-managed transactions by honoring Spring's@Transactional
annotation.org.springframework.test.context.web中AbstractTestExecutionListener的使用
org.springframework.test.context.web中AbstractTestExecutionListener的子类 修饰符和类型 类 说明 class
ServletTestExecutionListener
TestExecutionListener
which provides mock Servlet API support toWebApplicationContexts
loaded by the Spring TestContext Framework.