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

isFlaggedForRollback

open static fun isFlaggedForRollback(): Boolean

Determine whether the current test-managed transaction has been flagged for rollback or flagged for commit.

Exceptions

IllegalStateException - if a transaction is not active for the current test

Return
true if the current test-managed transaction is flagged to be rolled back; false if the current test-managed transaction is flagged to be committed

See Also
#isActive()#flagForRollback()#flagForCommit()