Package org.jboss.arquillian.config.descriptor.api

Examples of org.jboss.arquillian.config.descriptor.api.ContainerDef


               throw new IllegalStateException("Multiple Groups defined as default, only one is allowed:\n" + defaultConfig + ":" + group);
            }
            defaultConfig = group;
         }

         ContainerDef defaultInGroup = null;
         // verify only one container in group is marked as default
         for(ContainerDef container: group.getGroupContainers())
         {
            if(container.isDefault())
            {
View Full Code Here


   public void createSetup()
   {
      registry = new LocalContainerRegistry(injector.get());
      when(serviceLoader.onlyOne(eq(DeployableContainer.class))).thenReturn(deployableContainer);

      ContainerDef suiteContainerDef = mock(ContainerDef.class);
      when(suiteContainerDef.getContainerName()).thenReturn(MANAGED_SERVER_NAME);
      when(suiteContainerDef.getMode()).thenReturn("suite");

      ContainerDef manualContainerDef = Mockito.mock(ContainerDef.class);
      when(manualContainerDef.getContainerName()).thenReturn(MANUAL_SERVER_NAME);
      when(manualContainerDef.getMode()).thenReturn("manual");

      ContainerDef customContainerDef = Mockito.mock(ContainerDef.class);
      when(customContainerDef.getMode()).thenReturn("custom");
      when(customContainerDef.getContainerName()).thenReturn(CUSTOM_SERVER_NAME);

      registry.create(suiteContainerDef, serviceLoader);
      registry.create(manualContainerDef, serviceLoader);
      registry.create(customContainerDef, serviceLoader);
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.config.descriptor.api.ContainerDef

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.