Package org.apache.tuscany.sca.binding.ws.axis2.helloworld

Examples of org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorldService


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


            domain.getCompositeActivator().start(deployable);
        }
    }

  public void testPing() throws IOException {
    HelloWorldService helloWorldService = domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService");
        assertNotNull(helloWorldService);
        assertEquals("Hello test", helloWorldService.getGreetings("test"));
  }
View Full Code Here

        assertNotNull(helloWorldService);
        assertEquals("Hello test", helloWorldService.getGreetings("test"));
  }

    public void testServiceCall() throws IOException {
        HelloWorldService helloWorldService = domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService");
        assertNotNull(helloWorldService);

        assertEquals("Hello Smith", helloWorldService.getGreetings("Smith"));
    }
View Full Code Here

        // Get the SCA module context.
        ModuleContext moduleContext = CurrentModuleContext.getContext();

        // Locate the HelloWorld service
        HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldServiceComponent");
       
        // Invoke the HelloWorld service
        String value = helloworldService.getGreetings("World");
       
        assertEquals(value, "Hello World");
    }
View Full Code Here

        // Obtain SCA module context.
        ModuleContext moduleContext = CurrentModuleContext.getContext();

        // Locate the HelloWorld service component and invoke it
        HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldService");

        String value = helloworldService.getGreetings(name);
       
        // Stop the runtime
        tuscany.stop();
       
        return value;
View Full Code Here

  public void testPing() throws IOException {
    new Socket("127.0.0.1", 8085);
  }

    public void testServiceCall() throws IOException {
        HelloWorldService helloWorldService = domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService");
        assertNotNull(helloWorldService);

        assertEquals("Hello Smith", helloWorldService.getGreetings("Smith"));
    }
View Full Code Here

    public void testPing() throws IOException {
        new Socket("127.0.0.1", 8085);
    }

    public void testServiceCall() throws IOException {
        HelloWorldService helloWorldService =
            domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService");
        assertNotNull(helloWorldService);

        assertEquals("Hello Smith", helloWorldService.getGreetings("Smith"));
    }
View Full Code Here

        // Get the SCA module context.
        ModuleContext moduleContext = CurrentModuleContext.getContext();

        // Locate the HelloWorld service
        HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldServiceComponent");
       
        // Invoke the HelloWorld service
        String value = helloworldService.getGreetings("World");
       
        assertEquals(value, "Hello World");
    }
View Full Code Here

        url = new URL(root);
        return url;
    }

    public void testPing() throws IOException {
        HelloWorldService helloWorldService =
            domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService");
        assertNotNull(helloWorldService);
        assertEquals("Hello test", helloWorldService.getGreetings("test"));
    }
View Full Code Here

        assertNotNull(helloWorldService);
        assertEquals("Hello test", helloWorldService.getGreetings("test"));
    }

    public void testServiceCall() throws IOException {
        HelloWorldService helloWorldService =
            domain.getService(HelloWorldService.class, "HelloWorldServiceComponent/HelloWorldService");
        assertNotNull(helloWorldService);

        assertEquals("Hello Smith", helloWorldService.getGreetings("Smith"));
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.ws.axis2.helloworld.HelloWorldService

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.