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

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


public class LegacyMappingTestCase {

    @Test
    public void legacyCapabilityMapping() {

        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
                .property("browserCapabilities", "mockdrone");

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


            System.setProperty("arq.extension.mockdrone.booleanField", "true");
            System.setProperty("arq.extension.mockdrone.abcDef", "abcDef value");

            fire(new ManagerStarted());

            ArquillianDescriptor descriptor = getManager().getContext(ApplicationContext.class).getObjectStore()
                .get(ArquillianDescriptor.class);

            Assert.assertNotNull("ArquillianDescriptor was created", descriptor);

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

            System.setProperty("arq.extension.mockdrone-different.booleanField", "true");
            System.setProperty("arq.extension.mockdrone-different.abcDef", "abcDef value");

            fire(new ManagerStarted());

            ArquillianDescriptor descriptor = getManager().getContext(ApplicationContext.class).getObjectStore()
                .get(ArquillianDescriptor.class);

            Assert.assertNotNull("ArquillianDescriptor was created", descriptor);

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

*/
public class ConfigurationTestCase {

    @Test
    public void arquillianDescriptorTest() {
        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

        validateConfiguration(configuration, 12345, true, "The descriptor string");
    }

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

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

        validateConfiguration(configuration, 0, false, "The different property field");
    }

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

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

    }

    @Test
    public void mapNonCamelCases() {

        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
            .property("opera.no_quit", "true").property("firefox_profile", "JSON value").property("acceptSslCerts", "true");

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

    }

    @Test
    public void mapPropertiesNeededToBeCast() {

        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
            .property("loggingPrefs", "driver=WARNING,profiling=INFO").property("webStorageEnabled", "false")
            .property("acceptSslCerts", "true");

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

    }

    @Test
    public void mapTypedDroneConfiguration() {
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("typedmockdrone");

        TypedMockDroneConfiguration configuration = ConfigurationMapper.fromArquillianDescriptor(descriptor,
            new TypedMockDroneConfiguration(), Default.class);

        Assert.assertNotNull("Map<String, Object> was created", configuration.getObjectMap());
View Full Code Here

*/
public class MapPropertiesMappingTestCase {

    @Test
    public void mapFromDescriptorTest() {
        ArquillianDescriptor descriptor = Descriptors.create(ArquillianDescriptor.class).extension("mockdrone")
            .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");

        MockDroneConfiguration configuration = ConfigurationMapper.fromArquillianDescriptor(descriptor,
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.