Package helloworld

Examples of helloworld.HelloWorldService.sayHello()


        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


//        assertEquals("2", composoteScopeService.sayHello(""));
//    }

    public void testStateless() throws Exception {
        HelloWorldService statelessService = context.locateService(HelloWorldService.class, "StatelessComponent");
        assertEquals("1", statelessService.sayHello(""));
        // stateless gives a new instance for each request
        assertEquals("1", statelessService.sayHello(""));
    }

// Request scope not implemented in core yet   
View Full Code Here

    public void testStateless() throws Exception {
        HelloWorldService statelessService = context.locateService(HelloWorldService.class, "StatelessComponent");
        assertEquals("1", statelessService.sayHello(""));
        // stateless gives a new instance for each request
        assertEquals("1", statelessService.sayHello(""));
    }

// Request scope not implemented in core yet   
//    public void testRequestState() throws Exception {
//        HelloWorldService requestService = context.locateService(HelloWorldService.class, "RequestComponent");
View Full Code Here

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

        Assert.assertEquals("Hello beate", client.sayHello("beate"));
        Assert.assertEquals("Hello beate arnold", client.sayHello2("beate", "arnold"));

    }

    @BeforeClass
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.