spring-framework / org.springframework.test.context.transaction / TestTransaction / start

start

open static fun start(): Unit

Start a new test-managed transaction.

Only call this method if #end has been called or if no transaction has been previously started.

Exceptions

IllegalStateException - if the transaction context could not be retrieved or if a transaction is already active for the current test

See Also
#isActive()#end()