spring-framework / org.springframework.test.context.transaction / TestTransaction / <init>

<init>

TestTransaction()

TestTransaction provides a collection of static utility methods for programmatic interaction with test-managed transactions within test methods, before methods, and after methods.

Consult the javadocs for TransactionalTestExecutionListener for a detailed explanation of test-managed transactions.

Support for TestTransaction is automatically available whenever the TransactionalTestExecutionListener is enabled. Note that the TransactionalTestExecutionListener is typically enabled by default, but it can also be manually enabled via the TestExecutionListeners annotation.

Author
Sam Brannen

Since
4.1

See Also
TransactionalTestExecutionListener