Package org.apache.felix.ipojo.test.scenarios.ps.service

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


        assertEquals("ASF", ref.getProperty(Constants.SERVICE_VENDOR));
        assertEquals("my.pid", ref.getProperty(Constants.SERVICE_PID));
       
       
        // Test foo invocation
        FooService fs = (FooService) getServiceObject(ref);
        assertTrue("FooService invocation failed", fs.foo());
       
        helper.dispose();

       
        // Check that there is no more FooService
View Full Code Here


      for (int i = 0; i < intAProp.length; i++) {
        if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
      } 
     
      // Invoke
      FooService fs = (FooService) getServiceObject(sr);
      assertTrue("invoke fs", fs.foo());
     
      // Re-check the property (change)
      intProp = (Integer) sr.getProperty("int");
      boolProp = (Boolean) sr.getProperty("boolean");
      strProp = (String) sr.getProperty("string");
View Full Code Here

    for (int i = 0; i < intAProp.length; i++) {
      if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
    } 
   
    // Invoke
    FooService fs = (FooService) getServiceObject(sr);
    assertTrue("invoke fs", fs.foo());
   
    // Re-check the property (change)
    intProp = (Integer) sr.getProperty("int");
    boolProp = (Boolean) sr.getProperty("boolean");
    strProp = (String) sr.getProperty("string");
View Full Code Here

    for (int i = 0; i < intAProp.length; i++) {
      if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
    } 
   
    // Invoke
    FooService fs = (FooService) getServiceObject(sr);
    assertTrue("invoke fs", fs.foo());
   
    // Re-check the property (change)
    intProp = (Integer) sr.getProperty("int");
    boolProp = (Boolean) sr.getProperty("boolean");
    strProp = (String) sr.getProperty("string");
View Full Code Here

      for (int i = 0; i < intAProp.length; i++) {
        if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
      } 
     
      // Invoke
      FooService fs = (FooService) getServiceObject(sr);
      assertTrue("invoke fs", fs.foo());
     
      // Re-check the property (change)
      intProp = (Integer) sr.getProperty("int");
      boolProp = (Boolean) sr.getProperty("boolean");
      strProp = (String) sr.getProperty("string");
View Full Code Here

      for (int i = 0; i < intAProp.length; i++) {
        if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
      } 
     
      // Invoke
      FooService fs = (FooService) getServiceObject(sr);
      assertTrue("invoke fs", fs.foo());
     
      // Re-check the property (change)
      intProp = (Integer) sr.getProperty("int");
      boolProp = (Boolean) sr.getProperty("boolean");
      strProp = (String) sr.getProperty("string");
View Full Code Here

    ref = getServiceReference(FooService.class.getName(), "(" + "instance.name" + "=" + compName + ")");

    assertNotNull("FS not available", ref);

    // Test foo invocation
    FooService fs = (FooService) getServiceObject(ref);
    assertTrue("FooService invocation failed", fs.foo());

    helper.dispose();


    // Check that there is no more FooService
View Full Code Here

    for (int i = 0; i < intAProp.length; i++) {
      if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality (1)"); }
    }
   
    // Invoke
    FooService fs = (FooService) getServiceObject(sr);
    assertTrue("invoke fs", fs.foo());
   
    // Re-check the property (change)
    intProp = (Integer) sr.getProperty("int");
    boolProp = (Boolean) sr.getProperty("boolean");
    strProp = (String) sr.getProperty("string");
View Full Code Here

    for (int i = 0; i < intAProp.length; i++) {
      if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
    }
   
    // Invoke
    FooService fs = (FooService) getServiceObject(sr);
    assertTrue("invoke fs", fs.foo());
   
    // Re-check the property (change)
    intProp = (Integer) sr.getProperty("int");
    boolProp = (Boolean) sr.getProperty("boolean");
    strProp = (String) sr.getProperty("string");
View Full Code Here

    for (int i = 0; i < intAProp.length; i++) {
      if(intAProp[i] != v2[i]) { fail("Check the intAProp Equality"); }
    }
   
    // Invoke
    FooService fs = (FooService) getServiceObject(sr);
    assertTrue("invoke fs", fs.foo());
   
    // Re-check the property (change)
    intProp = (Integer) sr.getProperty("int");
    boolProp = (Boolean) sr.getProperty("boolean");
    strProp = (String) sr.getProperty("string");
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.test.scenarios.ps.service.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.