use of com.hp.mwtests.ts.arjuna.resources.HeuristicRecord in project narayana by jbosstm.
the class HeuristicNotificationUnitTest method test.
@Test
public void test() throws Exception {
AtomicAction A = new AtomicAction();
DummyHeuristic dh = new DummyHeuristic();
A.begin();
A.add(new BasicRecord());
A.add(new BasicRecord());
A.add(new HeuristicRecord());
A.addSynchronization(dh);
A.commit(false);
assertEquals(TwoPhaseOutcome.HEURISTIC_MIXED, dh.getStatus());
}
Aggregations