Package org.exoplatform.container.TestExoContainer

Examples of org.exoplatform.container.TestExoContainer.MyClass


   {
      // Needed to make sure that all threads start at the same time
      startSignal.await();
      try
      {
         ar.compareAndSet(null, container.registerComponentInstance("a", new MyClass()));
      }
      catch (ContainerException e)
      {
         // ignore expected behavior
      }
View Full Code Here


   public void callMainMethods() throws InterruptedException, BrokenBarrierException
   {
      // Needed to make sure that all threads start at the same time
      startSignal.await();
      final Object key = new Object();
      assertNotNull(container.registerComponentInstance(key, new MyClass()));
      assertNotNull(container.getComponentAdapter(key));
      assertFalse(container.getComponentAdapters().isEmpty());
      assertFalse(container.getComponentAdaptersOfType(MyClass.class).isEmpty());
      assertNotNull(container.getComponentInstance(key));
      assertNotNull(container.getComponentInstanceOfType(MyClass.class));
View Full Code Here

TOP

Related Classes of org.exoplatform.container.TestExoContainer.MyClass

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.