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

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


   {
      DeploymentContext deploymentContext = this.deploymentContext.get();
      try
      {
         DeploymentEvent event = context.getEvent();
         deploymentContext.activate(event.getDeployment());

         context.proceed();
      }
      finally
      {
View Full Code Here


            {
               throw new IllegalArgumentException(
                     "Could not operate on deployment (@" + OperateOnDeployment.class.getSimpleName() + "), " +
                     "no deployment found with name: " + operatesOn.value());
            }
            context.activate(deployment);
            contextActivated = true;
         }
         return runInContainerContext(deployment == null ? null:deployment.getDescription().getTarget(), resource, qualifiers);
      }
      finally
View Full Code Here

      ContainerContext containerContext = getManager().getContext(ContainerContext.class);
      DeploymentContext deploymentContext = getManager().getContext(DeploymentContext.class);
      try
      {
         deploymentContext.activate(deploymentX);
         deploymentContext.getObjectStore().add(contextualType, innerType);
         deploymentContext.deactivate();

         /*
          *  deploymentZ is left active and should be handled as 'current'.
View Full Code Here

         /*
          *  deploymentZ is left active and should be handled as 'current'.
          *  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();
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.