Search in sources :

Example 1 with LocalCleanupSynchronization

use of com.arjuna.ats.internal.jta.resources.jts.LocalCleanupSynchronization in project narayana by jbosstm.

the class SynchronizationUnitTest method test.

@Test
public void test() throws Exception {
    TransactionImple tx = new TransactionImple();
    LocalCleanupSynchronization sync = new LocalCleanupSynchronization(tx);
    assertTrue(sync.beforeCompletion());
    assertTrue(sync.afterCompletion(ActionStatus.COMMITTED));
    assertTrue(sync.get_uid().notEquals(Uid.nullUid()));
    assertTrue(sync.compareTo(new LocalCleanupSynchronization(null)) != 0);
}
Also used : TransactionImple(com.arjuna.ats.internal.jta.transaction.jts.TransactionImple) LocalCleanupSynchronization(com.arjuna.ats.internal.jta.resources.jts.LocalCleanupSynchronization) Test(org.junit.Test)

Aggregations

LocalCleanupSynchronization (com.arjuna.ats.internal.jta.resources.jts.LocalCleanupSynchronization)1 TransactionImple (com.arjuna.ats.internal.jta.transaction.jts.TransactionImple)1 Test (org.junit.Test)1