Package sample

Examples of sample.HelloWorld.sayHello()


    private void validate(Node node) throws ActivationException, ValidationException, NoSuchServiceException, ContributionReadException {
        node.startComposite("sample-helloworld", "helloworld.composite");
       
        Helloworld helloworldService = node.getService(Helloworld.class, "HelloworldComponent");
        Assert.assertEquals("Hello petra", helloworldService.sayHello("petra"));
       
        node.stopComposite("sample-helloworld", "helloworld.composite");
        try {
            node.getService(Helloworld.class, "HelloworldComponent");
            Assert.fail();
View Full Code Here


        domain = SCADomain.newInstance("myDomain", "src/test/resources/helloworld.jar", "META-INF/sca-deployables/Helloworld.composite" );
    }

    public void testInvoke() throws Exception {
        Helloworld service = domain.getService(Helloworld.class, "HelloworldComponent");
        assertEquals("Hello Petra", service.sayHello("Petra"));
    }

    @Override
    protected void tearDown() throws Exception {
        domain.close();
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.