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

end

open static fun end(): Unit

Immediately force a commit or rollback of the current test-managed transaction, according to the rollback flag.

Exceptions

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

See Also
#isActive()#start()