Package org.switchyard.component.bean

Examples of org.switchyard.component.bean.ReferenceInvocation


    }
   
    @Override
    public void propertyTest(String msg) {
        try {
            ReferenceInvocation invoke = invokerA.newInvocation("inOut")
                .setProperty(ReferenceInvokerTest.TEST_IN_PROPERTY, ReferenceInvokerTest.TEST_IN_PROPERTY)
                .invoke();
           
            // check that the out property can be read from the context
            Object outProp = invoke.getProperty(ReferenceInvokerTest.TEST_OUT_PROPERTY);
            Assert.assertNotNull(outProp);
            Assert.assertEquals(ReferenceInvokerTest.TEST_OUT_PROPERTY, outProp);
        } catch (Exception ex) {
            ex.printStackTrace();
            Assert.fail();
View Full Code Here


    }
   
    @Override
    public void messageTest(String msg) {
        try {
            ReferenceInvocation invoker = invokerA.newInvocation("inOut");
            invoker.getMessage().setContent("message-test-in");
            invoker.invoke();
           
            // check that the correct message reference is returned from invoke
            Assert.assertNotNull(invoker.getMessage().getContent());
            Assert.assertEquals("message-test-out", invoker.getMessage().getContent());
        } catch (Exception ex) {
            ex.printStackTrace();
            Assert.fail();
        }
    }
View Full Code Here

TOP

Related Classes of org.switchyard.component.bean.ReferenceInvocation

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.