Package helloworld

Examples of helloworld.HelloWorldService.sayHello()


    private static Node node;
   
    @Test
    public void testSayHello() {
        HelloWorldService service = node.getService(HelloWorldService.class, "HelloWorldClient/HelloWorldService");
        Assert.assertEquals("Hello boo", service.sayHello("boo"));
    }

    @BeforeClass
    public static void init() throws Exception {
        node = NodeFactory.newInstance().createNode("helloworld.composite").start();
View Full Code Here


    private static Node node;
   
    @Test
    public void testSayHello() {
        HelloWorldService service = node.getService(HelloWorldService.class, "HelloWorldClient/HelloWorldService");
        Assert.assertEquals("Hello boo", service.sayHello("boo"));
    }

    @BeforeClass
    public static void init() throws Exception {
        node = NodeFactory.newInstance().createNode("helloworld.composite").start();
View Full Code Here

    @Test
    public void testReference() throws MalformedURLException, IOException {
       
        HelloWorldService client = node.getService(HelloWorldService.class, "HelloWorldClient/HelloWorldService/sca");

        Assert.assertEquals("Hello beate", client.sayHello("beate"));
        Assert.assertEquals("Hello beate arnold", client.sayHello2("beate", "arnold"));
        Assert.assertEquals(0, client.sayHello4(true));
    }
   
    @Test
View Full Code Here

        //System.out.println(helloWorldService.sayHello("artep"));
    }
   
    public void testHelloWorldProperty() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldProperty");
        assertEquals(helloWorldService.sayHello("petra"), "Namaskaar petra");
        //System.out.println(helloWorldService.sayHello("petra"));
    }

    public void testHelloWorldPropertyDefault() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldPropertyDefault");
View Full Code Here

        //System.out.println(helloWorldService.sayHello("petra"));
    }

    public void testHelloWorldPropertyDefault() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldPropertyDefault");
        assertEquals(helloWorldService.sayHello("petra"), "Bow Wow petra");
        //System.out.println(helloWorldService.sayHello("petra"));
    }

    protected void tearDown() throws Exception {
       super.tearDown();
View Full Code Here

        context = CurrentCompositeContext.getContext();
    }

    public void testHelloWorld() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldComponent");
        assertEquals(helloWorldService.sayHello("petra"), "Hello petra");
    }

    public void testIntrospectedHelloWorld() throws Exception {
        HelloWorldService introspectableService = context.locateService(HelloWorldService.class, "IntrospectableHelloWorldComponent");
        assertEquals(introspectableService.sayHello("petra"), "Hello petra");
View Full Code Here

        assertEquals(helloWorldService.sayHello("petra"), "Hello petra");
    }

    public void testIntrospectedHelloWorld() throws Exception {
        HelloWorldService introspectableService = context.locateService(HelloWorldService.class, "IntrospectableHelloWorldComponent");
        assertEquals(introspectableService.sayHello("petra"), "Hello petra");
    }
   
    public void testE4XImplInvocation() throws Exception {
        HelloWorldService e4xHelloWorldService = context.locateService(HelloWorldService.class, "HelloWorldComponentE4X");
        String xmlInput = "<hel:getGreetings xmlns:hel=\"http://helloworld\"> " +
View Full Code Here

        String initialInput = "JavaClient";
        String jsAddition = " thro e4x reference";
        String endSvcImplResponse = "Hello from Java Implementation to ";
       
        Object response = e4xHelloWorldService.sayHello(initialInput);
        assertNotNull(response);
        assertTrue(response instanceof String);
        assertEquals(endSvcImplResponse + initialInput + jsAddition, response.toString());
        //System.out.println(response);
    }
View Full Code Here

        //System.out.println(response);
    }

    public void testHelloWorldProperty() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldProperty");
        assertEquals(helloWorldService.sayHello("petra"), "Kia ora petra");
        System.out.println(helloWorldService.sayHello("petra"));
    }

    public void testHelloWorldPropertyDefault() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldPropertyDefault");
View Full Code Here

    }

    public void testHelloWorldProperty() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldProperty");
        assertEquals(helloWorldService.sayHello("petra"), "Kia ora petra");
        System.out.println(helloWorldService.sayHello("petra"));
    }

    public void testHelloWorldPropertyDefault() throws Exception {
        HelloWorldService helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldPropertyDefault");
        assertEquals(helloWorldService.sayHello("petra"), "Hi petra");
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.