Package org.apache.felix.ipojo.test.scenarios.lifecycle.callback.service

Examples of org.apache.felix.ipojo.test.scenarios.lifecycle.callback.service.CheckService.check()


       
        // Check service providing
        ServiceReference cs_ref = Utils.getServiceReferenceByName(getContext(), CheckService.class.getName(), instance.getInstanceName());
        assertNotNull("Check CheckService availability", cs_ref);
        CheckService cs = (CheckService) getContext().getService(cs_ref);
        assertTrue("check CheckService invocation", cs.check());
       
        assertEquals("Check pojo count - 2", id_dep.getCreatedObjects().length, 1);
        // Check int property
        Integer index = (Integer) (cs.getProps().get("int"));
        Integer count = (Integer) (cs.getProps().get("count"));
View Full Code Here


       
        // Check service providing
        cs_ref = Utils.getServiceReferenceByName(getContext(), CheckService.class.getName(), instance.getInstanceName());
        assertNotNull("Check CheckService availability", cs_ref);
        cs = (CheckService) getContext().getService(cs_ref);
        assertTrue("check CheckService invocation", cs.check());
       
        // Check int property
        index = (Integer) (cs.getProps().get("int"));
        count = (Integer) (cs.getProps().get("count"));
        assertEquals("Check int property - 2 ("+index.intValue()+")", index.intValue(), 3);
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.