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

Examples of org.apache.felix.ipojo.test.composite.service.CheckService


    ServiceReference ref = null;

    ref = Utils.getServiceReferenceByName(sc, CheckService.class.getName(), "4");

    assertNotNull("Check ref", ref);
    CheckService cs = (CheckService) sc.getService(ref);
    assertTrue("Check invoke", cs.check());
   
    comp3.dispose();
    comp2.dispose();
    empty.dispose();
  }
View Full Code Here


      refs = getContext().getServiceReferences(CheckService.class.getName(), "(instance.name=Test)");
    } catch (InvalidSyntaxException e) {
      fail("Invalid filter : " + e.getMessage());
    }
    assertNotNull("Check refs not null", refs);
    CheckService cs = (CheckService) getContext().getService(refs[0]);
   
    assertTrue("Check invocation", cs.check());
    ci.dispose();
   
  }
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.test.composite.service.CheckService

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.