Examples of fooProps()


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

 
  public void testComponentTypeConfiguration() {
    ServiceReference ref = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), fooProvider1.getInstanceName());
    assertNotNull("Check FooService availability", ref);
    FooService fs = (FooService) getContext().getService(ref);
    Properties toCheck = fs.fooProps();
   
    Integer intProp = (Integer) toCheck.get("intProp");
    Boolean boolProp = (Boolean) toCheck.get("boolProp");
    String strProp = (String) toCheck.get("strProp");
    String[] strAProp = (String[]) toCheck.get("strAProp");
View Full Code Here

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

      if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality (1) : " + intAProp[i] + " != " + v2[i]); }
    }
   
    // change the field value
    assertTrue("Invoke the fs service", fs.foo());
    toCheck = fs.fooProps();
   
   
    //  Re-check the property (change)
    intProp = (Integer) toCheck.get("intProp");
    boolProp = (Boolean) toCheck.get("boolProp");
View Full Code Here

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

  public void testInstanceConfiguration() {
    ServiceReference sr = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "FooProvider-2");
    assertNotNull("Check the availability of the FS service", sr);
   
    FooService fs = (FooService) getContext().getService(sr);
    Properties toCheck = fs.fooProps();
   
    // Check service properties
    Integer intProp = (Integer) toCheck.get("intProp");
    Boolean boolProp = (Boolean) toCheck.get("boolProp");
    String strProp = (String) toCheck.get("strProp");
View Full Code Here

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

      if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
    }
   
   
    assertTrue("invoke fs", fs.foo());
    toCheck = fs.fooProps();
   
    // Re-check the property (change)
    intProp = (Integer) toCheck.get("intProp");
    boolProp = (Boolean) toCheck.get("boolProp");
    strProp = (String) toCheck.get("strProp");
View Full Code Here

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

  public void testNoValue() {
        ServiceReference sr = Utils.getServiceReferenceByName(getContext(), FooService.class.getName(), "FooProvider-3");
        assertNotNull("Check the availability of the FS service", sr);
       
        FooService fs = (FooService) getContext().getService(sr);
        Properties toCheck = fs.fooProps();
       
        // Check service properties
        Integer intProp = (Integer) toCheck.get("intProp");
        Boolean boolProp = (Boolean) toCheck.get("boolProp");
        String strProp = (String) toCheck.get("strProp");
View Full Code Here

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

        assertEquals("Check strProp equality", strProp, null);
        assertNull("Check strAProp nullity", strAProp);
        assertNull("Check intAProp  nullity", intAProp);
      
        assertTrue("invoke fs", fs.foo());
        toCheck = fs.fooProps();
       
        // Re-check the property (change)
        intProp = (Integer) toCheck.get("intProp");
        boolProp = (Boolean) toCheck.get("boolProp");
        strProp = (String) toCheck.get("strProp");
View Full Code Here

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

    assertEquals("Check bar equality -2", barP, new Integer(2));
    assertEquals("Check baz equality -2", bazP, "zab");

     // Get Service
        FooService fs = (FooService) context.getService(fooRef);
        Integer updated = (Integer) fs.fooProps().get("updated");
        Dictionary dict = (Dictionary) fs.fooProps().get("lastupdated");

        assertEquals("Check updated", 1, updated.intValue());
        System.out.println("Dictionary : " + dict);
        assertEquals("Check last updated", 3, dict.size()); // foo bar and baz as a service prooperties.
View Full Code Here

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

    assertEquals("Check baz equality -2", bazP, "zab");

     // Get Service
        FooService fs = (FooService) context.getService(fooRef);
        Integer updated = (Integer) fs.fooProps().get("updated");
        Dictionary dict = (Dictionary) fs.fooProps().get("lastupdated");

        assertEquals("Check updated", 1, updated.intValue());
        System.out.println("Dictionary : " + dict);
        assertEquals("Check last updated", 3, dict.size()); // foo bar and baz as a service prooperties.
View Full Code Here

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

        assertEquals("Check bar equality -2", barP, new Integer(2));
        assertEquals("Check baz equality -2", bazP, "zab");

        // Get Service
        FooService fs = (FooService) context.getService(fooRef);
        Integer updated = (Integer) fs.fooProps().get("updated");
        Dictionary dict = (Dictionary) fs.fooProps().get("lastupdated");

        assertEquals("Check updated", 1, updated.intValue());
        assertEquals("Check last updated", 3, dict.size());
View Full Code Here

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

        assertEquals("Check baz equality -2", bazP, "zab");

        // Get Service
        FooService fs = (FooService) context.getService(fooRef);
        Integer updated = (Integer) fs.fooProps().get("updated");
        Dictionary dict = (Dictionary) fs.fooProps().get("lastupdated");

        assertEquals("Check updated", 1, updated.intValue());
        assertEquals("Check last updated", 3, dict.size());

        getContext().ungetService(msRef);
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.