Package org.jpos.transaction.participant

Examples of org.jpos.transaction.participant.Forward


    }

    @Test
    public void testAbort3() throws Throwable {
        LogEvent evt = new LogEvent("testTransactionManagerTag", Integer.valueOf(2));
        transactionManager.abort(1, 100L, Boolean.TRUE, members, members.add(new Forward()), evt, null);
        assertEquals("evt.payLoad.size()", 2, evt.getPayLoad().size());
        assertEquals("evt.payLoad.get(1)", "          abort: org.jpos.transaction.participant.Forward", evt.getPayLoad().get(1));
    }
View Full Code Here


    @Test
    public void testPrepareThrowsNullPointerException3() throws Throwable {
        List<TransactionParticipant> members = new ArrayList();
        List<TransactionParticipant> arrayList = new ArrayList();
        arrayList.add(new Forward());
        LogEvent evt = new LogEvent();
        try {
            transactionManager.prepare(1, 100L, Boolean.FALSE, members, arrayList.iterator(), false, evt, null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
View Full Code Here

TOP

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

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.