Examples of fooProps()


Examples of org.apache.felix.ipojo.test.scenarios.configuration.service.FooService.fooProps()

    assertEquals("Check bar equality", barP, new Integer(0));
    assertEquals("Check baz equality", bazP, "zab");
   
    // Check field value
    FooService fs = (FooService) getContext().getService(fooRef);
    Properties p = fs.fooProps();
    fooP = (String) p.get("foo");
    barP = (Integer) p.get("bar");
   
    assertEquals("Check foo field equality", fooP, "oof");
    assertEquals("Check bar field equality", barP, new Integer(0));
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.manipulation.service.FooService.fooProps()

     */
    public void testBundleContext() {
        ServiceReference ref = helper.getServiceReferenceByName(FooService.class.getName(), ci_lazzy.getInstanceName());
        assertNotNull("Check that a FooService from " + ci_lazzy.getInstanceName() + " is available",ref);
        FooService fs = (FooService) getServiceObject(ref);
        Properties p = fs.fooProps();
        assertNotNull("Check the bundle context", p.get("context"));
        assertEquals("Check the creation of 1 object",1, ((PrimitiveInstanceDescription) lazzyArch.getInstanceDescription()).getCreatedObjects().length);
    }

    /**
 
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.ps.service.FooService.fooProps()

       
        assertFalse(isServiceAvailable(CheckService.class.getName()));
        assertTrue(isServiceAvailable(FooService.class.getName()));
      
        FooService fs = (FooService) getServiceObject(FooService.class.getName(), null);
        fs.fooProps();
       
        assertTrue(isServiceAvailable(CheckService.class.getName()));
        assertTrue(isServiceAvailable(FooService.class.getName()));
       
        ci.dispose();
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.temporal.service.FooService.fooProps()

    public Properties getProps() {
        Iterator it = fs.iterator();
        if (it.hasNext()) {
            FooService svc = (FooService) it.next();
            return svc.fooProps();
        }
        return null;
    }

}
View Full Code Here

Examples of org.apache.felix.ipojo.test.scenarios.temporal.service.FooService.fooProps()

    public Properties getProps() {
        Iterator it = fs.iterator();
        if (it.hasNext()) {
            FooService svc = (FooService) it.next();
            return svc.fooProps();
        }
        return 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.