程序包 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 TestTransactionprovides a collection of static utility methods for programmatic interaction with test-managed transactions within test methods, before methods, and after methods.TransactionalTestExecutionListener TestExecutionListenerthat provides support for executing tests within test-managed transactions by honoring Spring's@Transactionalannotation.TransactionConfigurationAttributes 已过时。 As of Spring Framework 4.2, this class is officially deprecated and will be removed when@TransactionConfigurationis removed.注释类型概要 注释类型 说明 AfterTransaction Test annotation which indicates that the annotatedvoidmethod should be executed after a transaction is ended for a test method configured to run within a transaction via Spring's@Transactionalannotation.BeforeTransaction Test annotation which indicates that the annotatedvoidmethod should be executed before a transaction is started for a test method configured to run within a transaction via Spring's@Transactionalannotation.TransactionConfiguration 已过时。 As of Spring Framework 4.2, use@Rollbackor@Commitat the class level and thetransactionManagerqualifier in@Transactional.