Examples of DeploymentDescription


Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

    */

   @Test
   public void shouldDefaultToSingleArchive()
   {
      DeploymentDescription deployment = new DeploymentDescription(DEFAULT_NAME, ShrinkWrap.create(JavaArchive.class));
      deployment.setTarget(TargetDescription.DEFAULT);
     
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(deployment);
     
      DeploymentDescription defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT).getDescription();
     
      Assert.assertEquals(deployment, defaultDeployment);
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   }

   @Test
   public void shouldDefaultToSingleDescriptor()
   {
      DeploymentDescription deployment = new DeploymentDescription(DEFAULT_NAME, Descriptors.create(BeansDescriptor.class));
      deployment.setTarget(TargetDescription.DEFAULT);
     
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(deployment);
     
      DeploymentDescription defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT).getDescription();
     
      Assert.assertEquals(deployment, defaultDeployment);
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test
   public void shouldDefaultToArchiveWhenDescriptorIsPresent()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("B", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));


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

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test
   public void shouldNotDefaultWhenMultipleArchives()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("B", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));
     
      Deployment defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT);
     
      Assert.assertNull(defaultDeployment);
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test
   public void shouldDefaultToDefaultWithMultipleDeployments()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription(DEFAULT_NAME, Descriptors.create(BeansDescriptor.class))
            .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());
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test
   public void shouldNotDefaultWhenMultipleDescriptors()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("B", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));
     
      Deployment defaultDeployment = scenario.deployment(DeploymentTargetDescription.DEFAULT);
     
      Assert.assertNull(defaultDeployment);
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test
   public void shouldNotGetDefaultWithNonDefaultName()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));
      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());
   }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test
   public void shouldNotGetWithUnknownName()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", ShrinkWrap.create(JavaArchive.class))
            .setTarget(TargetDescription.DEFAULT));
      scenario.addDeployment(
            new DeploymentDescription("B", Descriptors.create(BeansDescriptor.class))
            .setTarget(TargetDescription.DEFAULT));


      Deployment deployment = scenario.deployment(new DeploymentTargetDescription("C"));
     
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test
   public void shouldAllowMultipleDeploymentWithSameNameOfDifferentType()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", ShrinkWrap.create(JavaArchive.class))
            .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
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.deployment.DeploymentDescription

   @Test // checks same as shouldAllowMultipleDeploymentWithSameNameOfDifferentType but added in different order
   public void shouldAllowMultipleDeploymentWithSameNameOfDifferentTypeOrderIrrelevant()
   {
      DeploymentScenario scenario = new DeploymentScenario();
      scenario.addDeployment(
            new DeploymentDescription("A", Descriptors.create(BeansDescriptor.class))
            .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
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.