Package org.jpos.transaction.participant

Examples of org.jpos.transaction.participant.Trace


        assertEquals("(ArrayList) members.size()", 0, members.size());
    }

    @Test
    public void testCommit5() throws Throwable {
        TransactionParticipant p = new Trace();
        transactionManager.commit(p, 100L, Boolean.FALSE);
        assertTrue("Test completed without Exception", true);
    }
View Full Code Here


        assertEquals("result", 64, result);
    }

    @Test
    public void testPrepareForAbort1() throws Throwable {
        int result = transactionManager.prepareForAbort(new Trace(), 100L, new File("testTransactionManagerParam1"));
        assertEquals("result", 64, result);
    }
View Full Code Here

    @Test
    public void testPrepareThrowsNullPointerException5() throws Throwable {
        LogEvent evt = new LogEvent("testTransactionManagerTag");
        List<TransactionParticipant> members = new ArrayList();
        List<TransactionParticipant> arrayList = new ArrayList();
        boolean abort = arrayList.add(new Trace());
        try {
            transactionManager.prepare(1, 100L, new NotActiveException(), members, arrayList.iterator(), abort, evt, null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertEquals("evt.payLoad.size()", 1, evt.getPayLoad().size());
View Full Code Here

TOP

Related Classes of org.jpos.transaction.participant.Trace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.