Examples of TargetDescription


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

      if (!isControllableContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }
     
      List<Deployment> managedDeployments = scenario.startupDeploymentsFor(new TargetDescription(containerQualifier));
     
      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      log.info("Manual starting of a server instance");

      event.fire(new StartContainer(container));
     
View Full Code Here

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

      if (!isControllableContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }

      List<Deployment> managedDeployments = scenario.startupDeploymentsFor(new TargetDescription(containerQualifier));
     
      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      for (String name : config.keySet())
      {
         container.getContainerConfiguration().overrideProperty(name, config.get(name));
      }
View Full Code Here

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

      if (!isControllableContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }

      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      List<Deployment> managedDeployments = scenario.startupDeploymentsFor(new TargetDescription(containerQualifier));
     
      for (Deployment d : managedDeployments)
      {
         if (d.isDeployed())
         {
View Full Code Here

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

      if (!isControllableContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }

      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      log.info("Hard killing of a server instance");

      event.fire(new KillContainer(container));
   }
View Full Code Here

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

      if (!containerExists(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("No container found in registry with name " + containerQualifier);
      }

      Container container = registry.getContainer(new TargetDescription(containerQualifier));
      return container.getState() == Container.State.STARTED;
   }
View Full Code Here

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

      if (!isManualContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }
     
      List<Deployment> managedDeployments = scenario.startupDeploymentsFor(new TargetDescription(containerQualifier));
     
      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      log.info("Manual starting of a server instance");

      event.fire(new StartContainer(container));
     
View Full Code Here

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

      if (!isManualContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }

      List<Deployment> managedDeployments = scenario.startupDeploymentsFor(new TargetDescription(containerQualifier));
     
      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      for (String name : config.keySet())
      {
         container.getContainerConfiguration().overrideProperty(name, config.get(name));
      }
View Full Code Here

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

      if (!isManualContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }

      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      List<Deployment> managedDeployments = scenario.startupDeploymentsFor(new TargetDescription(containerQualifier));
     
      for (Deployment d : managedDeployments)
      {
         if (d.isDeployed())
         {
View Full Code Here

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

      if (!isManualContainer(registry.getContainers(), containerQualifier))
      {
         throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
      }

      Container container = registry.getContainer(new TargetDescription(containerQualifier));

      log.info("Hard killing of a server instance");

      event.fire(new KillContainer(container));
   }
View Full Code Here

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

      for(DeploymentDescription deploymentDesc : scenario) {

         if(deploymentDesc.getOrder() == 1) {
            Assert.assertEquals(
                  "Verify deployment has specified target",
                  new TargetDescription("target-first"),
                  deploymentDesc.getTarget());

            Assert.assertEquals(
                  "Verify deployment has specified protocol",
                  new ProtocolDescription("protocol-first"),
                  deploymentDesc.getProtocol());

            Assert.assertEquals(1, deploymentDesc.getOrder());
            Assert.assertEquals(false, deploymentDesc.managed());
            Assert.assertEquals(false, deploymentDesc.testable());
            Assert.assertTrue(Validate.isArchiveOfType(JavaArchive.class, deploymentDesc.getArchive()));
            Assert.assertNull(deploymentDesc.getExpectedException());
         } else {
            Assert.assertEquals(
                  "Verify deployment has specified target",
                  new TargetDescription("target-second"),
                  deploymentDesc.getTarget());
            Assert.assertEquals(
                  "Verify deployment has specified protocol",
                  new ProtocolDescription("protocol-second"),
                  deploymentDesc.getProtocol());
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.