use of com.hp.mwtests.ts.arjuna.resources.SyncRecord in project narayana by jbosstm.
the class SynchronizationUnitTest method test.
@Test
public void test() throws Exception {
AtomicAction A = new AtomicAction();
SyncRecord sr = new SyncRecord();
A.begin();
assertEquals(A.addSynchronization(sr), AddOutcome.AR_ADDED);
assertEquals(A.getSynchronizations().size(), 1);
A.commit();
assertTrue(sr.called());
}
Aggregations