Package helloworld

Examples of 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


       
    }
   
    @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

       
    }   
   
    @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

        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

        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

        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

        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

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

    }     
View Full Code Here

        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

        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

TOP

Related Classes of helloworld.HelloWorldClient

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.