Package org.jpos.transaction.participant

Examples of org.jpos.transaction.participant.HasEntry


        }
    }

    @Test
    public void testCommit1() throws Throwable {
        transactionManager.commit(1, 100L, "", members, members.add(new HasEntry()), null, null);
        assertEquals("(ArrayList) members.size()", 1, members.size());
    }
View Full Code Here


        }
    }

    @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());
View Full Code Here

    }

    @Test
    public void testPrepare8() throws Throwable {
        AbstractList<TransactionParticipant> arrayList = new ArrayList(1000);
        arrayList.add(new HasEntry());
        LogEvent evt = new LogEvent();
        int result = transactionManager.prepare(1, 100L, Boolean.TRUE, new ArrayList(), arrayList.iterator(), false, evt, null);
        assertEquals("evt.payLoad.size()", 3, evt.getPayLoad().size());
        assertEquals("result", 64, result);
    }
View Full Code Here

TOP

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

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.