Package org.jpos.transaction.participant

Examples of org.jpos.transaction.participant.Join


        members = new ArrayList();
    }

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


        assertEquals("evt.payLoad.get(0)", "          abort: org.jpos.transaction.participant.Debug", evt.getPayLoad().get(0));
    }

    @Test
    public void testAbort5() throws Throwable {
        transactionManager.abort(1, 100L, Long.valueOf(-64L), members, members.add(new Join()), null, null);
        assertEquals("(ArrayList) members.size()", 1, members.size());
    }
View Full Code Here

    @Test
    public void testCreateQBeanThrowsNullPointerException() throws Throwable {
        Element e = new Element("testQFactoryName", "testQFactoryPrefix", "testQFactoryUri");
        try {
            new QFactory(new ObjectName(""), null).createQBean(null, e, new Join());
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertEquals("e.getName()", "testQFactoryName", e.getName());
        }
View Full Code Here

        String[] args2 = new String[3];
        args2[0] = "Q2-ShutdownHook";
        args2[1] = "Q2:type=dystem,service=loader";
        args2[2] = ".";
        try {
            new QFactory(null, new Q2(args)).createQBean(new Q2(args2), null, new Join());
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
        }
    }
View Full Code Here

TOP

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

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.