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

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


      final String descString = desc.exportAsString();
     
      assertXPath(descString, "/arquillian/group/@qualifier", GROUP_NAME_1);
      assertXPath(descString, "/arquillian/group/container/@qualifier", CONTAINER_NAME_1);
     
      ArquillianDescriptor descriptor = create(descString);
      Assert.assertEquals(1, descriptor.getGroups().size());
      Assert.assertEquals(1, descriptor.getGroups().get(0).getGroupContainers().size());
      Assert.assertEquals(CONTAINER_NAME_1, descriptor.getGroups().get(0).getGroupContainers().get(0).getContainerName());
   }
View Full Code Here


      assertXPath(descString, "/arquillian/extension[1]/property[2]/text()", PROPERTY_VALUE_2);
     
      assertXPath(descString, "/arquillian/extension[2]/property/@name", PROPERTY_NAME_3);
      assertXPath(descString, "/arquillian/extension[2]/property/text()", PROPERTY_VALUE_3);
     
      ArquillianDescriptor descriptor = create(descString);
      Assert.assertEquals(2, descriptor.getExtensions().size());
      Assert.assertEquals(EXTENSION_NAME_1, descriptor.getExtensions().get(0).getExtensionName());
      Assert.assertEquals(2, descriptor.getExtensions().get(0).getExtensionProperties().size());
      Assert.assertEquals(PROPERTY_VALUE_1, descriptor.getExtensions().get(0).getExtensionProperties().get(PROPERTY_NAME_1));
      Assert.assertEquals(PROPERTY_VALUE_2, descriptor.getExtensions().get(0).getExtensionProperties().get(PROPERTY_NAME_2));

      Assert.assertEquals(EXTENSION_NAME_2, descriptor.getExtensions().get(1).getExtensionName());
      Assert.assertEquals(1, descriptor.getExtensions().get(1).getExtensionProperties().size());
      Assert.assertEquals(PROPERTY_VALUE_3, descriptor.getExtensions().get(1).getExtensionProperties().get(PROPERTY_NAME_3));
   }
View Full Code Here

      desc = ConfigurationSysPropResolver.resolveSystemProperties(desc);
      final String descString = desc.exportAsString();
     
      assertXPath(descString, "/arquillian/extension/@qualifier", EXTENSION_NAME_2);
     
      ArquillianDescriptor descriptor = create(descString);
      Assert.assertEquals(1, descriptor.getExtensions().size());
      Assert.assertEquals(EXTENSION_NAME_2, descriptor.getExtensions().get(0).getExtensionName());
      Assert.assertEquals(1, descriptor.getExtensions().get(0).getExtensionProperties().size());
      Assert.assertEquals(PROPERTY_VALUE_1, descriptor.getExtensions().get(0).getExtensionProperties().get(PROPERTY_NAME_1));
   }
View Full Code Here

     
      assertXPath(descString, "/arquillian/extension/@qualifier", EXTENSION_NAME_1);
      assertXPath(descString, "/arquillian/extension/property/@name", PROPERTY_NAME_1);
      assertXPath(descString, "/arquillian/extension/property/text()", PROPERTY_VALUE_2);

      ArquillianDescriptor descriptor = create(descString);
      Assert.assertEquals(1, descriptor.getExtensions().size());
      Assert.assertEquals(EXTENSION_NAME_1, descriptor.getExtensions().get(0).getExtensionName());
      Assert.assertEquals(1, descriptor.getExtensions().get(0).getExtensionProperties().size());
      Assert.assertEquals(PROPERTY_VALUE_2, descriptor.getExtensions().get(0).getExtensionProperties().get(PROPERTY_NAME_1));
   }
View Full Code Here

   @Test
   public void shouldBeAbleToLoadEmptyDefaultConfiguration() throws Exception
   {
      registrar.loadConfiguration(new ManagerStarted());
      ArquillianDescriptor desc = descInst.get();

      Assert.assertEquals(0, desc.getContainers().size());
      Assert.assertEquals(0, desc.getGroups().size());
      Assert.assertEquals(0, desc.getExtensions().size());
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("A", desc.getContainers().get(0).getContainerName());
                  // verify mode = class, override test will set it to suite
                  Assert.assertEquals("class", desc.getContainers().get(0).getMode());
               }
            });
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("A", desc.getContainers().get(0).getContainerName());
                  // verify mode = class, override test will set it to suite
                  Assert.assertEquals("class", desc.getContainers().get(0).getMode());
               }
            });
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("B", desc.getContainers().get(0).getContainerName());
               }
            });
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("B", desc.getContainers().get(0).getContainerName());
                  Assert.assertEquals("manual", desc.getContainers().get(0).getMode());
               }
            });
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("C", desc.getContainers().get(0).getContainerName());
                  Assert.assertEquals("manual", desc.getContainers().get(0).getMode());
               }
            });
   }
View Full Code Here

TOP

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

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.