Package org.knowhowlab.osgi.testing.it.arquillian.simple.bundle

Examples of org.knowhowlab.osgi.testing.it.arquillian.simple.bundle.SimpleService.sum()


        // Get the service for the reference
        SimpleService service = (SimpleService) context.getService(sref);
        assertNotNull("Service not null", service);

        // Invoke the service
        int sum = service.sum(1, 2, 3);
        assertEquals(6, sum);

        // Stop the bundle
        bundle.stop();
        assertEquals(Bundle.RESOLVED, bundle.getState());
View Full Code Here


        // Get the service reference
        assertServiceAvailable(SimpleService.class);
        SimpleService service = getService(OSGiAssert.getBundleContext(), SimpleService.class);
        // Invoke the service
        int sum = service.sum(1, 2, 3);
        assertEquals(6, sum);

        // Stop the bundle
        findBundle(OSGiAssert.getBundleContext(), EXAMPLE_BUNDLE_SYMBOLIC_NAME, Version.emptyVersion).stop();
        assertBundleState(Bundle.RESOLVED, EXAMPLE_BUNDLE_SYMBOLIC_NAME, Version.emptyVersion);
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.