Package org.apache.felix.ipojo.junit4osgi.helpers

Examples of org.apache.felix.ipojo.junit4osgi.helpers.IPOJOHelper


public class LifecycleController extends OSGiTestCase {
   
    private IPOJOHelper helper;
   
    public void setUp() {
        helper = new IPOJOHelper(this);
    }
View Full Code Here


public class ServiceProdiving extends OSGiTestCase {

    private IPOJOHelper helper;

    public void setUp() {
        helper = new IPOJOHelper(this);
    }
View Full Code Here

    private Element[] deps ;
   
    private IPOJOHelper helper;
   
    public void setUp() {
        helper = new IPOJOHelper(this);
        Element meta = helper.getMetadata("org.apache.felix.ipojo.test.scenarios.component.RankedDependency");
        deps = meta.getElements("requires");
    }
View Full Code Here

    private Element[] deps ;
    private Element[] froms;
    private IPOJOHelper helper;
   
    public void setUp() {
        helper = new IPOJOHelper(this);
        Element meta = helper.getMetadata("org.apache.felix.ipojo.test.scenarios.component.FilteredDependency");
        deps = meta.getElements("requires");
       
        Element meta2 = helper.getMetadata("org.apache.felix.ipojo.test.scenarios.component.FromDependency");
        froms = meta2.getElements("requires");
View Full Code Here

    ServiceRegistration reg, reg2;
    IPOJOHelper helper;

    public void setUp() {
      helper = new IPOJOHelper(this);
      reg = context.registerService(String.class.getName(), "ahahah", null);
      reg2 = context.registerService(AbstractMap.class.getName(), new HashMap(), null);

    }
View Full Code Here

public class GetComponentInstanceTest extends OSGiTestCase {
   
    IPOJOHelper helper;
   
    public void setUp() {
        helper = new IPOJOHelper(this);
    }
View Full Code Here

  private ServiceReference immRef; 
 
  IPOJOHelper helper;

  public void setUp() {
      helper = new IPOJOHelper(this);
     
    String factName = "Manipulation-FooProviderType-1";
    String compName = "FooProvider-1";
    ci_lazzy = helper.createComponentInstance(factName, compName);
   
View Full Code Here

public class DuplicateMethod extends OSGiTestCase {
   
   
    public void testDuplicateMethod() {
        IPOJOHelper helper = new IPOJOHelper(this);
        helper.createComponentInstance("plopimpl", "plop");
        ServiceReference ref = helper.getServiceReferenceByName(Plop.class.getName(), "plop");
        assertNotNull("Check plop", ref);
        Plop plop = (Plop) getServiceObject(ref);
        Object o = plop.getPlop();
        assertEquals("Check result", "plop", o);
        helper.dispose();
    }
View Full Code Here

    ServiceReference prim_ref;
   
    IPOJOHelper helper;

    public void setUp() {
        helper = new IPOJOHelper(this);
        Properties p1 = new Properties();
        p1.put("instance.name","primitives");
        instance = helper.createComponentInstance("ManipulationPrimitives5-PrimitiveManipulationTester", p1);
        assertTrue("check instance state", instance.getState() == ComponentInstance.VALID);
        prim_ref = helper.getServiceReferenceByName(PrimitiveManipulationTestService.class.getName(), instance.getInstanceName());
View Full Code Here

    ComponentInstance foo1, foo2;
    ComponentInstance checker;
    IPOJOHelper helper;
   
    public void setUp() {
        helper = new IPOJOHelper(this);
        foo1 = helper.createComponentInstance("org.apache.felix.ipojo.test.scenarios.component.FooServiceImpl", "foo1");
        foo2 = helper.createComponentInstance("org.apache.felix.ipojo.test.scenarios.component.FooServiceImpl", "foo2");
        checker = helper.createComponentInstance("TypedList", "checker");
        foo1.stop();
        foo2.stop();
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.junit4osgi.helpers.IPOJOHelper

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.