程序包 org.springframework.test.context.transaction
Transactional support classes for the Spring TestContext Framework.
类概要 类 说明 TestContextTransactionUtils Utility methods for working with transactions and data access related beans within the Spring TestContext Framework.TestTransaction TestTransaction
provides a collection of static utility methods for programmatic interaction with test-managed transactions within test methods, before methods, and after methods.TransactionalTestExecutionListener TestExecutionListener
that provides support for executing tests within test-managed transactions by honoring Spring's@Transactional
annotation.注释类型概要 注释类型 说明 AfterTransaction Test annotation which indicates that the annotatedvoid
method should be executed after a transaction is ended for a test method configured to run within a transaction via Spring's@Transactional
annotation.BeforeTransaction Test annotation which indicates that the annotatedvoid
method should be executed before a transaction is started for a test method configured to run within a transaction via Spring's@Transactional
annotation.