Search in sources :

Example 1 with Debug

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);
}
Also used : BSHTransactionParticipant(org.jpos.transaction.participant.BSHTransactionParticipant) HasEntry(org.jpos.transaction.participant.HasEntry) ArrayList(java.util.ArrayList) NotActiveException(java.io.NotActiveException) Debug(org.jpos.transaction.participant.Debug) CheckPoint(org.jpos.transaction.participant.CheckPoint) Test(org.junit.Test)

Example 2 with Debug

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());
}
Also used : Debug(org.jpos.transaction.participant.Debug) Test(org.junit.Test)

Example 3 with Debug

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());
}
Also used : Debug(org.jpos.transaction.participant.Debug) Test(org.junit.Test)

Example 4 with Debug

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());
}
Also used : Debug(org.jpos.transaction.participant.Debug) Test(org.junit.Test)

Example 5 with Debug

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());
}
Also used : Debug(org.jpos.transaction.participant.Debug) Test(org.junit.Test)

Aggregations

Debug (org.jpos.transaction.participant.Debug)11 Test (org.junit.Test)11 CheckPoint (org.jpos.transaction.participant.CheckPoint)2 LogEvent (org.jpos.util.LogEvent)2 NotActiveException (java.io.NotActiveException)1 ArrayList (java.util.ArrayList)1 BSHTransactionParticipant (org.jpos.transaction.participant.BSHTransactionParticipant)1 HasEntry (org.jpos.transaction.participant.HasEntry)1