Search in sources :

Example 1 with NoTransactionException

use of org.springframework.transaction.NoTransactionException in project redisson by redisson.

the class TransactionalBean method testNoTransaction.

public void testNoTransaction() {
    try {
        RTransaction transaction = transactionManager.getCurrentTransaction();
        Assertions.fail();
    } catch (NoTransactionException e) {
    // skip
    }
}
Also used : NoTransactionException(org.springframework.transaction.NoTransactionException) RTransaction(org.redisson.api.RTransaction)

Aggregations

RTransaction (org.redisson.api.RTransaction)1 NoTransactionException (org.springframework.transaction.NoTransactionException)1