Package org.apache.geronimo.messaging

Examples of org.apache.geronimo.messaging.MockEndPointImpl


        assertTrue(proxy instanceof MockEndPoint);
        assertTrue(proxy instanceof EndPointProxy);
    }

    public void testInvoke() throws Exception {
        MockEndPoint actual = new MockEndPointImpl(new MockNode(), "", targets);
       
        EndPointUtil.interConnect(actual, factory);
       
        MockEndPoint endPoint = (MockEndPoint) proxy;
        Object opaque = new Object();
        endPoint.sendRawObject(opaque);
        List received = actual.getReceived();
        assertEquals(1, received.size());
        assertEquals(opaque, ((Request)received.get(0)).getParameters()[0]);
    }
View Full Code Here


        assertTrue(proxy instanceof MockEndPoint);
        assertTrue(proxy instanceof EndPointProxy);
    }

    public void testInvoke() throws Exception {
        MockEndPoint actual = new MockEndPointImpl(new MockNode(), "", targets);
       
        EndPointUtil.interConnect(actual, factory);
       
        MockEndPoint endPoint = (MockEndPoint) proxy;
        Object opaque = new Object();
        endPoint.sendRawObject(opaque);
        List received = actual.getReceived();
        assertEquals(1, received.size());
        assertEquals(opaque, ((Request)received.get(0)).getParameters()[0]);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.messaging.MockEndPointImpl

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.