Examples of SCAClient


Examples of org.apache.tuscany.sca.node.SCAClient

    }

   
    @Test
    public void testShop() {
        SCAClient client = (SCAClient)storeClientNode;
        Shopper shopper = client.getService(Shopper.class, "StoreClient");
       
        String total = shopper.shop("Orange", 5);
        System.out.println("Total: " + total);
       
        Assert.assertEquals("$17.75", total);
View Full Code Here

Examples of org.apache.tuscany.sca.node.SCAClient

    }

   
    @Test
    public void testShop() {
        SCAClient client = (SCAClient)storeClientNode;
        Shopper shopper = client.getService(Shopper.class, "StoreClient");
       
        String total = shopper.shop("Orange", 5);
        System.out.println("Total: " + total);
       
        Assert.assertEquals("$17.75", total);
View Full Code Here

Examples of org.oasisopen.sca.client.SCAClient

        assertEquals("Hi Hello Petra", client.sayHello("Petra"));
    }

    @Test
    public void testCalculatorClientAPI() throws Exception {
        SCAClient scaClient = SCAClientFactory.newInstance();
        Helloworld service = scaClient.getService(Helloworld.class, "HelloworldService", null);
        assertNotNull(service);
        assertEquals("Hello Petra", service.sayHello("Petra"));

        Helloworld client = scaClient.getService(Helloworld.class, "HelloworldClient", null);
        assertNotNull(client);
        assertEquals("Hi Hello Petra", client.sayHello("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.