Package org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld

Examples of org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.HelloWorldReference


        node.start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = ((SCAClient)node).getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
        assertEquals("Hello Fred Bloggs", helloWorldService.getGreetings("Fred Bloggs"));
       
    }
View Full Code Here


        node.start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = ((SCAClient)node).getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
        assertEquals("Hello Fred Bloggs CheckedException UncheckedException", helloWorldService.getGreetings("Fred Bloggs"));
       
    }
View Full Code Here

        node = NodeFactory.newInstance().createNode().start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
        assertEquals("Hello Fred Bloggs " +
                "foo remote service exception, see nested exception",
                helloWorldService.getGreetings("Fred Bloggs"));
       
    }
View Full Code Here

        node = NodeFactory.newInstance().createNode().start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
/* TUSCANY-2967 - disable this change while we decide what to do and
*                return faults as JMSObject messages to be consistent
*                again with other wire formats       
        assertEquals("Hello Fred Bloggs " +
                     "org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.CheckedException: foo " +
                     "org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: bla",
                     helloWorldService.getGreetings("Fred Bloggs"));
*/
        assertEquals("Hello Fred Bloggs " +
                     "foo " +
                     "remote service exception, see nested exception" ,
                     helloWorldService.getGreetings("Fred Bloggs"));       
            
    }
View Full Code Here

        node = NodeFactory.newInstance().createNode().start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = node.getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
        assertEquals("Hello Fred Bloggs foo remote service exception, see nested exception", helloWorldService.getGreetings("Fred Bloggs"));
       
    }
View Full Code Here

        node.start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = ((SCAClient)node).getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
        assertEquals("Hello Fred Bloggs", helloWorldService.getGreetings("Fred Bloggs"));
       
    }
View Full Code Here

        node.start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = ((SCAClient)node).getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
        assertEquals("Hello Fred Bloggs foo remote service exception, see nested exception", helloWorldService.getGreetings("Fred Bloggs"));
       
    }
View Full Code Here

        node.start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = ((SCAClient)node).getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
        assertEquals("Hello Fred Bloggs " +
                "foo remote service exception, see nested exception",
                helloWorldService.getGreetings("Fred Bloggs"));
       
    }
View Full Code Here

        node.start();
    }

    @Test
    public void testHelloWorldCreate() throws Exception {
        HelloWorldReference helloWorldService = ((SCAClient)node).getService(HelloWorldReference.class, "HelloWorldReferenceComponent");
       
        System.out.println(helloWorldService.getGreetings("Fred Bloggs"));
/* TUSCANY-2967 - disable this change while we decide what to do and
*                return faults as JMSObject messages to be consistent
*                again with other wire formats       
        assertEquals("Hello Fred Bloggs " +
                     "org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.CheckedException: foo " +
                     "org.osoa.sca.ServiceRuntimeException: java.lang.RuntimeException: bla",
                     helloWorldService.getGreetings("Fred Bloggs"));
*/
        assertEquals("Hello Fred Bloggs " +
                     "foo " +
                     "remote service exception, see nested exception" ,
                     helloWorldService.getGreetings("Fred Bloggs"));       
            
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.jms.format.jmsbytes.helloworld.HelloWorldReference

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.