Package org.apache.tuscany.sca.binding.jms.provider

Examples of org.apache.tuscany.sca.binding.jms.provider.JMSBindingListener


        EasyMock.expect(service.getRuntimeWire(jmsBinding)).andReturn(runtimeWire);
        EasyMock.expect(runtimeWire.invoke(expectedOperation, new Object[] {operationParams}))
            .andReturn(operationReturnValue);

        // Create the JMS Binding Listener
        final JMSBindingListener bindingListener = new JMSBindingListener(jmsBinding, jmsResourceFactory, service);

        // Simulate a message
        final TextMessage requestJMSMsg = EasyMock.createStrictMock(TextMessage.class);
        EasyMock.expect(requestJMSMsg.getStringProperty("scaOperationName")).andReturn(scaOperationName);
        EasyMock.expect(requestJMSMsg.getText()).andReturn(operationParams);
        EasyMock.expect(requestJMSMsg.getJMSReplyTo()).andReturn(null);

        // Lets put all the mocks into replay mode
        // EasyMock.replay(iface);
        EasyMock.replay(ifaceContract);
        EasyMock.replay(service);
        EasyMock.replay(requestJMSMsg);
        EasyMock.replay(runtimeWire);

        // Do the test
        bindingListener.onMessage(requestJMSMsg);

        // Verify our Mock objects
        // EasyMock.verify(iface);
        // EasyMock.verify(ifaceContract);
        // EasyMock.verify(service);
View Full Code Here


        EasyMock.expect(service.getRuntimeWire(jmsBinding)).andReturn(runtimeWire);
        EasyMock.expect(runtimeWire.invoke(expectedOperation, new Object[] {operationParams}))
            .andReturn(operationReturnValue);

        // Create the JMS Binding Listener
        final JMSBindingListener bindingListener = new JMSBindingListener(jmsBinding, jmsResourceFactory, service);

        // Simulate a message
        final TextMessage requestJMSMsg = EasyMock.createStrictMock(TextMessage.class);
        EasyMock.expect(requestJMSMsg.getStringProperty("scaOperationName")).andReturn(scaOperationName);
        EasyMock.expect(requestJMSMsg.getText()).andReturn(operationParams);
        EasyMock.expect(requestJMSMsg.getJMSReplyTo()).andReturn(null);

        // Lets put all the mocks into replay mode
        // EasyMock.replay(iface);
        EasyMock.replay(ifaceContract);
        EasyMock.replay(service);
        EasyMock.replay(requestJMSMsg);
        EasyMock.replay(runtimeWire);

        // Do the test
        bindingListener.onMessage(requestJMSMsg);

        // Verify our Mock objects
        // EasyMock.verify(iface);
        // EasyMock.verify(ifaceContract);
        // EasyMock.verify(service);
View Full Code Here

        EasyMock.expect(service.getRuntimeWire(jmsBinding)).andReturn(runtimeWire);
        EasyMock.expect(runtimeWire.invoke(expectedOperation, new Object[] {operationParams}))
            .andReturn(operationReturnValue);

        // Create the JMS Binding Listener
        final JMSBindingListener bindingListener = new JMSBindingListener(jmsBinding, jmsResourceFactory, service);

        // Simulate a message
        final TextMessage requestJMSMsg = EasyMock.createStrictMock(TextMessage.class);
        EasyMock.expect(requestJMSMsg.getStringProperty("scaOperationName")).andReturn(scaOperationName);
        EasyMock.expect(requestJMSMsg.getText()).andReturn(operationParams);
        EasyMock.expect(requestJMSMsg.getJMSReplyTo()).andReturn(null);

        // Lets put all the mocks into replay mode
        // EasyMock.replay(iface);
        EasyMock.replay(ifaceContract);
        EasyMock.replay(service);
        EasyMock.replay(requestJMSMsg);
        EasyMock.replay(runtimeWire);

        // Do the test
        bindingListener.onMessage(requestJMSMsg);

        // Verify our Mock objects
        // EasyMock.verify(iface);
        // EasyMock.verify(ifaceContract);
        // EasyMock.verify(service);
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.jms.provider.JMSBindingListener

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.