Examples of HelloWorldClient


Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

    }
       
    @Test
    public void testHelloWorldRemote() throws Exception {
       
        HelloWorldClient helloWorldClientA;
        helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemote");
       
        try {
            helloWorldClientA.getGreetings("fred");
        } catch (ServiceUnavailableException ex){
            Assert.fail();
        }
    }    
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        }
    }    
   
    @Test
    public void testHelloWorldLocalAndRemote() throws Exception {
        HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientLocalAndRemote");
        HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientLocalAndRemote");
        Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred");
        Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred");
    }  
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred");
    }  
   
    @Test
    public void testHelloWorldMultipleServices() throws Exception {
        HelloWorldClient helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices");
        HelloWorldClient helloWorldClientA2 = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleServices2");
        HelloWorldClient helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientMultipleServices");       
        Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred");
        Assert.assertEquals(helloWorldClientA2.getGreetings("fred"), "Hello fred");
        Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred");
    }  
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        Assert.assertEquals(helloWorldClientB.getGreetings("fred"), "Hello fred");
    }  
   
    @Test
    public void testHelloWorldMultipleBindings() throws Exception
        HelloWorldClient helloWorldClientA;
        helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientMultipleBindings");
        Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred");
       
    }  
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        nodeB.stop();
    }    
   
    @Test
    public void testHelloWorldPromotion() throws Exception
        HelloWorldClient helloWorldClientA;
        helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientRemotePromotion");
        Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred");

    }     
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        System.in.read();
    }
   
    @Test
    public void testHelloWorldCallbackLocal() throws Exception
        HelloWorldClient helloWorldClientB;
        helloWorldClientB = nodeB.getService(HelloWorldClient.class, "BHelloWorldClientCallbackLocal");
        Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred"))
    }    
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred"))
    }    
   
    @Test
    public void testHelloWorldCallbackRemote() throws Exception
        HelloWorldClient helloWorldClientA;
        helloWorldClientA = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote");
        Assert.assertEquals("Hello callback fred", helloWorldClientA.getGreetings("fred"));
    }   
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        nodeB.stop();
    }   
   
    @Test
    public void testHelloWorldAsynch() throws Exception {       
        HelloWorldClient helloWorldClientB;
        helloWorldClientB = nodeA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote");
        helloWorldClientB.getGreetings("fred");
        System.out.println("Sleeping ...");
        Thread.sleep(2000);
        System.out.println("... Done");
        Assert.assertEquals("callback fred", HelloWorldClientCallbackOnewayRemoteImpl.result );
       
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        stopDomain(domainB);
    }  
   
    //@Test
    public void testHelloWorldCallbackLocal() throws Exception
        HelloWorldClient helloWorldClientB;
        helloWorldClientB = domainB.getService(HelloWorldClient.class, "BHelloWorldClientCallbackLocal");
        Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred"))
    }     
View Full Code Here

Examples of org.apache.tuscany.sca.binding.sca.axis2.helloworld.HelloWorldClient

        Assert.assertEquals("Hello callback fred", helloWorldClientB.getGreetings("fred"))
    }     
   
    @Test
    public void testHelloWorldCallbackRemote() throws Exception
        HelloWorldClient helloWorldClientA;
        helloWorldClientA = domainA.getService(HelloWorldClient.class, "AHelloWorldClientCallbackRemote");
        Assert.assertEquals("Hello callback fred", helloWorldClientA.getGreetings("fred"));
       
    }   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.