Package org.apache.felix.ipojo.test.composite.service

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


    assertTrue("Check instance validity", under.getState() == ComponentInstance.VALID);
    ServiceContext sc = Utils.getServiceContext(under);
    ServiceReference ref = sc.getServiceReference(FooService.class.getName());
    assertNotNull("Check refs not null", ref);
    FooService foo = (FooService) sc.getService(ref);
    Properties p = foo.fooProps();
    boolean b = ((Boolean) p.get("boolProp")).booleanValue();
    String s = (String) p.get("strProp");
    int i = ( (Integer) p.get("intProp")).intValue();
    assertTrue("Test boolean", b);
    assertEquals("Test string", s, "foo");
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.