Package bitronix.tm.mock.events

Examples of bitronix.tm.mock.events.XAResourceIsSameRmEvent


        return true;
    }

    public boolean isSameRM(XAResource xaResource) throws XAException {
        boolean result = xaResource == this;
        getEventRecorder().addEvent(new XAResourceIsSameRmEvent(this, xaResource, result));
        return result;
    }
View Full Code Here


        assertEquals(XAResource.TMSUCCESS, ((XAResourceEndEvent) orderedEvents.get(i++)).getFlag());
        // resume happens here
        assertEquals(true, ((XAResourceIsSameRmEvent) orderedEvents.get(i++)).isSameRm());
        assertEquals(XAResource.TMJOIN, ((XAResourceStartEvent) orderedEvents.get(i++)).getFlag());

        XAResourceIsSameRmEvent evt = (XAResourceIsSameRmEvent) orderedEvents.get(i++);
        XAResource src = (XAResource) evt.getSource();
        XAResource comp = evt.getXAResource();
        assertTrue(poolingDataSource2.findXAResourceHolder(src) != null);
        assertTrue(poolingDataSource2.findXAResourceHolder(comp) != null);

        assertEquals(XAResource.TMJOIN, ((XAResourceStartEvent) orderedEvents.get(i++)).getFlag());
View Full Code Here

TOP

Related Classes of bitronix.tm.mock.events.XAResourceIsSameRmEvent

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.