Examples of deployment()


Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

      deployment.setTarget(TargetDescription.DEFAULT);
     
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(deployment);
     
      DeploymentDescription defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT).getDescription();
     
      Assert.assertEquals(deployment, defaultDeployment);
   }

   @Test
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

      scenario.addDeployment(
            new DeploymentDescription("B", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));


      DeploymentDescription defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT).getDescription();
     
      Assert.assertEquals("A", defaultDeployment.getName());
   }

   @Test
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("B", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));
     
      Deployment defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT);
     
      Assert.assertNull(defaultDeployment);
   }

   @Test
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription(DEFAULT_NAME, ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));

      Deployment defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT);
      Assert.assertNotNull(defaultDeployment);
      Assert.assertEquals(DEFAULT_NAME, defaultDeployment.getDescription().getName());
      Assert.assertTrue(defaultDeployment.getDescription().isArchiveDeployment());
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("B", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));
     
      Deployment defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT);
     
      Assert.assertNull(defaultDeployment);
   }

   @Test
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

      scenario.addDeployment(
            new DeploymentDescription("B", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));


      DeploymentDescription deployment = scenario.deployment(new DeploymentTargetDescription("B")).getDescription();
     
      Assert.assertEquals("B", deployment.getName());
   }

   @Test
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

      scenario.addDeployment(
            new DeploymentDescription("B", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));


      Deployment deployment = scenario.deployment(new DeploymentTargetDescription("C"));
     
      Assert.assertNull(deployment);
   }

   @Test
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("A", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));

      Deployment deployment = scenario.deployment(new DeploymentTargetDescription("A"));

      // will default to Archive
      Assert.assertEquals("A", deployment.getDescription().getName());
      Assert.assertTrue(deployment.getDescription().isArchiveDeployment());
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("A", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));

      Deployment deployment = scenario.deployment(new DeploymentTargetDescription("A"));

      // will default to Archive
      Assert.assertEquals("A", deployment.getDescription().getName());
      Assert.assertTrue(deployment.getDescription().isArchiveDeployment());
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentScenario.deployment()

            {
               throw new IllegalStateException("No " + DeploymentScenario.class.getSimpleName() + " found. " +
                     "Possible cause, @" + OperateOnDeployment.class.getSimpleName() + " is currently only supported on the client side. (@" + RunAsClient.class.getSimpleName() + ")");
            }
            OperateOnDeployment operatesOn = getOperatesOnDeployment(qualifiers);
            deployment = scenario.deployment(new DeploymentTargetDescription(operatesOn.value()));
            if(deployment == null)
            {
               throw new IllegalArgumentException(
                     "Could not operate on deployment (@" + OperateOnDeployment.class.getSimpleName() + "), " +
                     "no deployment found with name: " + operatesOn.value());
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.