Package calculator.dosgi.operations

Examples of calculator.dosgi.operations.AddService


    @Test
    public void testOSGi() throws Exception {
        Registry registry = LocateRegistry.getRegistry(8085);
        Object add = registry.lookup("AddService");
        AddService addService = OSGiTestUtils.cast(add, AddService.class);
        double sum = addService.add(1.0, 2.0);
        Assert.assertEquals(3.0, sum, 0.0);
    }
View Full Code Here


    @Test
    public void testOSGi() throws Exception {
        Registry registry = LocateRegistry.getRegistry(8085);
        Object add = registry.lookup("AddService");
        AddService addService = OSGiTestUtils.cast(add, AddService.class);
        double sum = addService.add(1.0, 2.0);
        Assert.assertEquals(3.0, sum, 0.0);
    }
View Full Code Here

    @Test
    public void testOSGi() throws Exception {
        Registry registry = LocateRegistry.getRegistry(8085);
        Object add = registry.lookup("AddService");
        AddService addService = OSGiTestUtils.cast(add, AddService.class);
        double sum = addService.add(1.0, 2.0);
        Assert.assertEquals(3.0, sum, 0.0);
    }
View Full Code Here

TOP

Related Classes of calculator.dosgi.operations.AddService

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.