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);
}
Aggregations