use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class TransactionManagerTest method testPrepareForAbort2.
@Test
public void testPrepareForAbort2() throws Throwable {
int result = transactionManager.prepareForAbort(new Debug(), 100L, Boolean.FALSE);
assertEquals("result", 129, result);
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class TransactionManagerTest method testAbort4.
@Test
public void testAbort4() throws Throwable {
members.add(new Debug());
LogEvent evt = new LogEvent("testTransactionManagerTag");
transactionManager.abort(1, 100L, "", members, false, evt, null);
assertEquals("evt.payLoad.size()", 1, evt.getPayLoad().size());
assertEquals("evt.payLoad.get(0)", " abort: org.jpos.transaction.participant.Debug", evt.getPayLoad().get(0));
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class TransactionManagerTest method testCommit3.
@Test
public void testCommit3() throws Throwable {
members.add(new Debug());
LogEvent evt = new LogEvent();
transactionManager.commit(1, 100L, Boolean.FALSE, members, false, evt, null);
assertEquals("evt.payLoad.size()", 1, evt.getPayLoad().size());
assertEquals("evt.payLoad.get(0)", " commit: org.jpos.transaction.participant.Debug", evt.getPayLoad().get(0));
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class LogTest method testCreateFatal1.
@Test
public void testCreateFatal1() throws Throwable {
LogEvent result = new Debug().createFatal();
assertNull("result.getRealm()", result.getRealm());
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class LogTest method testError.
@Test
public void testError() throws Throwable {
new Debug().error(new Object());
assertTrue("Test completed without Exception", true);
}
Aggregations