Package org.apache.felix.ipojo.junit4osgi.helpers

Examples of org.apache.felix.ipojo.junit4osgi.helpers.IPOJOHelper.dispose()


        ServiceReference ref = helper.getServiceReferenceByName(Plop.class.getName(), "plop");
        assertNotNull("Check plop", ref);
        Plop plop = (Plop) getServiceObject(ref);
        Object o = plop.getPlop();
        assertEquals("Check result", "plop", o);
        helper.dispose();
    }
}
View Full Code Here


       
        // Test foo invocation
        FooService fs = (FooService) getServiceObject(ref);
        assertTrue("FooService invocation failed", fs.foo());
       
        helper.dispose();

       
        // Check that there is no more FooService
        ref = getServiceReference(FooService.class.getName(), null);
       
View Full Code Here

    // Test foo invocation
    FooService fs = (FooService) getServiceObject(ref);
    assertTrue("FooService invocation failed", fs.foo());

    helper.dispose();


    // Check that there is no more FooService
    ref = getServiceReference(FooService.class.getName(), null);
View Full Code Here

        // Check service properties
        assertNotNull(ref.getProperty("prop1"));
        assertNull(ref.getProperty("prop2"));

       
        helper.dispose();

       
        // Check that there is no more FooService
        ref = getServiceReference(FooService.class.getName(), null);
       
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.