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

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


        Assert.assertEquals("Map entry was mapped", "FOOO-bar value", configuration.getMapMap().get("FOOO-bar"));
    }
   
    @Test
    public void mapFromPropertiesWithoutName() {
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
            .property(null, "A NULL property")
            .property("intField", "12345").property("stringField", "The descriptor string")
            .property("booleanField", "true").property("foo", "foo value").property("foo.bar", "foo.bar value")
            .property("foo_bar", "foo_bar value").property("abcDef", "abcDef value").property("FOOO-bar", "FOOO-bar value");
View Full Code Here


*/
public class EmptyMapCreatedTestCase {

    @Test
    public void emptyMapFromDescriptorTest() {
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
                .property("intField", "12345").property("stringField", "The descriptor string")
                .property("booleanField", "true");

        MockDroneConfiguration configuration = ConfigurationMapper.fromArquillianDescriptor(descriptor,
                new MockDroneConfiguration(), Default.class);
View Full Code Here

*/
public class ValueMapperTestCase {

    @Test
    public void valueMappersTest() throws Exception {
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
                .property("booleanField", "true").property("intField", "12345").property("integerField", "123456")
                .property("urlField", new URL("http://foo.org").toString())
                .property("uriField", new URI("http://foo.org").toString()).property("longField", "12345678");

        MockDroneConfiguration configuration = ConfigurationMapper.fromArquillianDescriptor(descriptor,
View Full Code Here

    @Test
    public void defaultConfiguration() throws Exception {

        // given
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class);

        getManager().bind(ApplicationScoped.class, ServiceLoader.class, serviceLoader);
        getManager().bind(ApplicationScoped.class, ArquillianDescriptor.class, descriptor);

        // then
View Full Code Here

    }

    @Test
    public void specificConfiguration() throws Exception {
        // given
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class)
                .extension("drone").property("instantiationTimeoutInSeconds", "40");

        getManager().bind(ApplicationScoped.class, ServiceLoader.class, serviceLoader);
        getManager().bind(ApplicationScoped.class, ArquillianDescriptor.class, descriptor);
View Full Code Here

    @Test
    public void specificConfigurationWithDebugMode() throws Exception {

        // given
        System.setProperty("arquillian.debug", "true");
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class)
                .extension("drone").property("instantiationTimeoutInSeconds", "40");

        getManager().bind(ApplicationScoped.class, ServiceLoader.class, serviceLoader);
        getManager().bind(ApplicationScoped.class, ArquillianDescriptor.class, descriptor);
View Full Code Here

    }

    @SuppressWarnings("rawtypes")
    @Before
    public void setMocks() {
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class);

        getManager().bind(ApplicationScoped.class, ServiceLoader.class, serviceLoader);
        getManager().bind(ApplicationScoped.class, ArquillianDescriptor.class, descriptor);
        Mockito.when(serviceLoader.all(Configurator.class)).thenReturn(
                Arrays.<Configurator>asList(new MockDronePriorityFactory(), new MockDroneFactory()));
View Full Code Here

    }

    @SuppressWarnings("rawtypes")
    @org.junit.Before
    public void setMocks() {
        ArquillianDescriptor desc = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
            .property("field", "foobar");

        TestEnricher testEnricher = new DroneTestEnricher();
        getManager().inject(testEnricher);
View Full Code Here

    }

    @SuppressWarnings("rawtypes")
    @org.junit.Before
    public void setUp() {
        ArquillianDescriptor desc = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone-different")
                .property("field", DIFFERENT_FIELD).extension("mockdrone-methodargumentone")
                .property("field", METHOD_ARGUMENT_ONE_FIELD);

        TestEnricher testEnricher = new DroneTestEnricher();
        getManager().inject(testEnricher);
View Full Code Here

      }
   }
  
   private boolean shouldRestart()
   {
      ArquillianDescriptor descriptor = configuration.get();
      Integer maxTestClasses = descriptor.engine().getMaxTestClassesBeforeRestart();
      if(maxTestClasses == null)
      {
         return false;
      }
      if(maxTestClasses > 0)
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.