Package org.apache.felix.ipojo.runtime.core.test.services

Examples of org.apache.felix.ipojo.runtime.core.test.services.FooService


        assertEquals("check both bind callback invocation -1", ((Integer) props.get("bothB")).intValue(), 0);
        assertEquals("check both unbind callback invocation -1", ((Integer) props.get("bothU")).intValue(), 0);
        assertEquals("check modify -1 (" + ((Integer) props.get("modified")).intValue() + ")", ((Integer) props.get("modified")).intValue(), 1);

        ServiceReference ref = ipojoHelper.getServiceReferenceByName(FooService.class.getName(), fooProvider.getInstanceName());
        FooService fs = (FooService) osgiHelper.getRawServiceObject(ref);

        fs.foo(); // Update

        props = cs.getProps();
        //Check properties
        assertEquals("check modify -1.1", ((Integer) props.get("modified")).intValue(), 3);
View Full Code Here


        assertEquals("check both bind callback invocation -1", ((Integer) props.get("bothB")).intValue(), 1);
        assertEquals("check both unbind callback invocation -1", ((Integer) props.get("bothU")).intValue(), 0);
        assertEquals("check modify -1 (" + ((Integer) props.get("modified")).intValue() + ")", ((Integer) props.get("modified")).intValue(), 1);

        ServiceReference ref = ipojoHelper.getServiceReferenceByName(FooService.class.getName(), fooProvider.getInstanceName());
        FooService fs = (FooService) osgiHelper.getRawServiceObject(ref);

        fs.foo(); // Update

        props = cs.getProps();
        //Check properties
        assertEquals("check modify -1.1", ((Integer) props.get("modified")).intValue(), 3);
View Full Code Here

        assertEquals("check dict bind callback invocation -1", ((Integer) props.get("dictB")).intValue(), 0);
        assertEquals("check dict unbind callback invocation -1", ((Integer) props.get("dictU")).intValue(), 0);
        assertEquals("check modify -1 (" + ((Integer) props.get("modified")).intValue() + ")", ((Integer) props.get("modified")).intValue(), 1);

        ServiceReference ref = ipojoHelper.getServiceReferenceByName(FooService.class.getName(), fooProvider.getInstanceName());
        FooService fs = (FooService) osgiHelper.getRawServiceObject(ref);

        fs.foo(); // Update

        props = cs.getProps();
        //Check properties
        assertEquals("check modify -1.1", ((Integer) props.get("modified")).intValue(), 3);
View Full Code Here

        assertEquals("check dict bind callback invocation -1", ((Integer) props.get("dictB")).intValue(), 1);
        assertEquals("check dict unbind callback invocation -1", ((Integer) props.get("dictU")).intValue(), 0);
        assertEquals("check modify -1 (" + ((Integer) props.get("modified")).intValue() + ")", ((Integer) props.get("modified")).intValue(), 1);

        ServiceReference ref = ipojoHelper.getServiceReferenceByName(FooService.class.getName(), fooProvider.getInstanceName());
        FooService fs = (FooService) osgiHelper.getRawServiceObject(ref);

        fs.foo(); // Update

        props = cs.getProps();
        //Check properties
        assertEquals("check modify -1.1", ((Integer) props.get("modified")).intValue(), 3);
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.runtime.core.test.services.FooService

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.