Examples of DestroyTest


Examples of org.apache.aries.blueprint.sample.DestroyTest

      bundleContext.registerService(Runnable.class.getName(), new Thread(), null);
     
      BlueprintContainer blueprintContainer = Helper.getBlueprintContainerForBundle(context(), "org.apache.aries.blueprint.sample");
      assertNotNull(blueprintContainer);
     
      DestroyTest dt = (DestroyTest) blueprintContainer.getComponentInstance("destroyCallingReference");
     
      Bundle b = findBundle("org.apache.aries.blueprint.sample");
      assertNotNull(b);
      b.stop();
     
      assertTrue("The destroy method was called", dt.waitForDestruction(1000));
     
      Exception e = dt.getDestroyFailure();
     
      if (e != null) throw e;
    }
View Full Code Here

Examples of org.apache.aries.blueprint.sample.DestroyTest

      bundleContext.registerService(Runnable.class.getName(), new Thread(), null);
     
      BlueprintContainer blueprintContainer = Helper.getBlueprintContainerForBundle(context(), "org.apache.aries.blueprint.sample");
      assertNotNull(blueprintContainer);
     
      DestroyTest dt = (DestroyTest) blueprintContainer.getComponentInstance("destroyCallingReference");
     
      Bundle b = findBundle("org.apache.aries.blueprint.sample");
      assertNotNull(b);
      b.stop();
     
      assertTrue("The destroy method was called", dt.waitForDestruction(1000));
     
      Exception e = dt.getDestroyFailure();
     
      if (e != null) throw e;
    }
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.