Package org.jboss.arquillian.config.descriptor.impl

Examples of org.jboss.arquillian.config.descriptor.impl.ContainerDefImpl


         try
         {
            DeployableContainer<?> deployableContainer = serviceLoader.onlyOne(DeployableContainer.class);
            if(deployableContainer != null)
            {
               reg.create(new ContainerDefImpl("arquillian.xml").setContainerName("default"), serviceLoader);
            }
         }
         catch (Exception e)
         {
            // ignore
View Full Code Here


            log.log(Level.WARNING, "Caught exception closing ModelControllerClient", e);
        }
    }

    private Container createServerContainer(ContainerRegistry registry, final Server server, final int operationTimeout) {
        ContainerDef def = new ContainerDefImpl("arquillian")
                                .container(server.getContainerName())
                                .setMode("custom");

        return registry.create(def, new ServiceLoader() {
View Full Code Here

        });
    }

    private Container createServerGroupContainer(ContainerRegistry registry, final ArchiveDeployer archiveDeployer,
            final Domain domain, final ServerGroup serverGroup, final int operationTimeout) {
        ContainerDef def = new ContainerDefImpl("arquillian")
                                .container(serverGroup.getContainerName())
                                .setMode("suite");

        return registry.create(def, new ServiceLoader() {
View Full Code Here

         {
            throw new IllegalStateException("Could not create the default container instance", e);
         }
         if(deployableContainer != null)
         {
            reg.create(new ContainerDefImpl("arquillian.xml").setContainerName("default"), serviceLoader);
         }
      }
      else if (activeConfiguration != null && reg.getContainers().size() == 0)
      {
         throw new IllegalArgumentException("No container or group found that match given qualifier: " + activeConfiguration);
View Full Code Here

         try
         {
            DeployableContainer<?> deployableContainer = serviceLoader.onlyOne(DeployableContainer.class);
            if(deployableContainer != null)
            {
               reg.create(new ContainerDefImpl("arquillian.xml").setContainerName("default"), serviceLoader);
            }
         }
         catch (Exception e)
         {
            // ignore
View Full Code Here

   }

   private Container addContainer(String name)
   {
      return containerRegistry.create(
            new ContainerDefImpl("arquillian.xml")
               .container(name),
            serviceLoader);
   }
View Full Code Here

      {
         bind(ApplicationScoped.class, DeploymentScenario.class, scenario);
      }

      Mockito.when(registry.getContainer(
            new TargetDescription("X"))).thenReturn(new ContainerImpl("X", deployableContainer, new ContainerDefImpl("X")));
      Mockito.when(registry.getContainer(
            new TargetDescription("Z"))).thenReturn(new ContainerImpl("Z", deployableContainer, new ContainerDefImpl("Z")));

      Deployment deploymentZ = new Deployment(new DeploymentDescription("Z", ShrinkWrap.create(JavaArchive.class))
                                                   .setTarget(new TargetDescription("Z")));
      Deployment deploymentX = new Deployment(new DeploymentDescription("X", ShrinkWrap.create(JavaArchive.class))
                                                   .setTarget(new TargetDescription("X")));
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.config.descriptor.impl.ContainerDefImpl

Copyright © 2018 www.massapicom. 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.