Examples of HelloWorldClient


Examples of helloworld.sdo.client.HelloWorldClient

    }
   

    public void testJavaToOSGi() throws Exception {

        HelloWorldClient helloWorldClient = scaDomain.getService(HelloWorldClient.class, "JavaHelloWorldClientComponent");
        String greetings = helloWorldClient.getGreetings("Apache", "Tuscany");
        System.out.println(greetings);
        assertEquals("Hello Apache Tuscany", greetings);
    }
View Full Code Here

Examples of helloworld.sdo.client.HelloWorldClient

        assertEquals("Hello Apache Tuscany", greetings);
    }
   
    public void testOSGiToJava() throws Exception {

        HelloWorldClient helloWorldClient = scaDomain.getService(HelloWorldClient.class, "OSGiHelloWorldClientComponent");
        String greetings = helloWorldClient.getGreetings("Apache", "Tuscany");
        System.out.println(greetings);
        assertEquals("Hello Apache Tuscany", greetings);
    }
View Full Code Here

Examples of io.reactivex.netty.examples.http.helloworld.HelloWorldClient

        server.shutdown();
    }

    @Test
    public void testRequestReplySequence() throws InterruptedException, ExecutionException, TimeoutException {
        HelloWorldClient client = new HelloWorldClient(DEFAULT_PORT); // The client is no different than hello world.
        HttpResponseStatus statusCode = client.sendHelloRequest().getStatus();
        Assert.assertEquals(HttpResponseStatus.OK, statusCode);
    }
View Full Code Here

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

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

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");
        Assert.assertEquals(helloWorldClientA.getGreetings("fred"), "Hello fred");
       
    }   
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.destroy();
    }  
   
    //@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

        nodeB.destroy();
    }  
   
    @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
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.