use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class TransactionManagerTest method testPrepare10.
@Test
public void testPrepare10() throws Throwable {
HasEntry hasEntry = new HasEntry();
AbstractList<TransactionParticipant> arrayList = new ArrayList();
arrayList.add(new Debug());
int result = transactionManager.prepare(1, 100L, new NotActiveException("testTransactionManagerParam1"), members, arrayList.iterator(), members.add(hasEntry), null, null);
assertEquals("(ArrayList) members.size()", 2, members.size());
assertSame("(ArrayList) members.get(0)", hasEntry, members.get(0));
assertEquals("result", 0, result);
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class LogTest method testCreateError.
@Test
public void testCreateError() throws Throwable {
LogEvent result = new Debug().createError();
assertNull("result.getRealm()", result.getRealm());
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class LogTest method testCreateWarn1.
@Test
public void testCreateWarn1() throws Throwable {
LogEvent result = new Debug().createWarn();
assertNull("result.getRealm()", result.getRealm());
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class LogTest method testCreateFatal.
@Test
public void testCreateFatal() throws Throwable {
LogEvent result = new Debug().createFatal("t7r");
assertNull("result.getRealm()", result.getRealm());
}
use of org.jpos.transaction.participant.Debug in project jPOS by jpos.
the class LogTest method testCreateDebug1.
@Test
public void testCreateDebug1() throws Throwable {
LogEvent result = new Debug().createDebug();
assertNull("result.getRealm()", result.getRealm());
}
Aggregations