Package org.jboss.arquillian.container.spi.context

Examples of org.jboss.arquillian.container.spi.context.ContainerContext.activate()


      ContainerContext containerContext = this.containerContext.get();
      ContainerControlEvent event = context.getEvent();

      try
      {
         containerContext.activate(event.getContainerName());
         context.proceed();
      }
      finally
      {
         containerContext.deactivate();
View Full Code Here


            {
               throw new IllegalArgumentException(
                     "Could not operate on deployment (@" + OperateOnDeployment.class.getSimpleName() + "), " +
                     "no container found with name: " + targetDescription);
            }
            context.activate(container.getName());
            contextActivated = true;
         }
         return doLookup(resource, qualifiers);
      }
      finally
View Full Code Here

          *  The test is to see if the Enricher with Qualifier can activate/deactive and read from X
          */
         deploymentContext.activate(deploymentZ);
         deploymentContext.getObjectStore().add(contextualType, outerType);

         containerContext.activate("TEST");

         TestEnricher enricher = new ArquillianResourceTestEnricher();
         injector.get().inject(enricher);

         X test = enrichType.cast(enrichType.newInstance());
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.