use of org.jpos.transaction.participant.CheckPoint in project jPOS by jpos.
the class TransactionManagerTest method testPrepare2.
@Test
public void testPrepare2() throws Throwable {
int result = transactionManager.prepare(new CheckPoint(), 100L, Boolean.FALSE);
assertEquals("result", 193, result);
}
use of org.jpos.transaction.participant.CheckPoint in project jPOS by jpos.
the class TransactionManagerTest method testCommit6.
@Test
public void testCommit6() throws Throwable {
TransactionParticipant p = new CheckPoint();
transactionManager.commit(p, 100L, "");
assertTrue("Test completed without Exception", true);
}
use of org.jpos.transaction.participant.CheckPoint in project jPOS by jpos.
the class TransactionManagerTest method testCommit2.
@Test
public void testCommit2() throws Throwable {
members.add(new CheckPoint());
transactionManager.commit(1, 100L, new IOException(), members, false, null, null);
assertEquals("(ArrayList) members.size()", 1, members.size());
}
Aggregations