Package org.jboss.arquillian.drone.impl.mockdrone

Examples of org.jboss.arquillian.drone.impl.mockdrone.MockDroneConfiguration


        Assert.assertNotNull("Drone object holder was created in the context", context);

        DronePoint<MockDrone> dronePoint = new DronePointImpl<MockDrone>(MockDrone.class,DronePoint.Lifecycle.CLASS,
                AnnotationMocks.drone());

        MockDroneConfiguration configuration = context.get(dronePoint).getConfigurationAs(MockDroneConfiguration.class);
        Assert.assertEquals("MockDrone configuration was created by MockDronePriorityFactory",
                MockDronePriorityFactory.MOCK_DRONE_PRIORITY_FACTORY_FIELD, configuration.getField());
    }
View Full Code Here


        DronePoint<MockDrone> invalidDronePoint = new DronePointImpl<MockDrone>(MockDrone.class,
                DronePoint.Lifecycle.CLASS, AnnotationMocks.drone());
        DronePoint<MockDrone> dronePoint = new DronePointImpl<MockDrone>(MockDrone.class, DronePoint.Lifecycle.CLASS,
                AnnotationMocks.drone(), AnnotationMocks.differentQualifier());

        MockDroneConfiguration configuration = context.get(dronePoint).getConfigurationAs(MockDroneConfiguration.class);
        Assert.assertFalse("There is no MockDroneConfiguration with @Default qualifier",
                context.get(invalidDronePoint).hasConfiguration());
        Assert.assertNotNull("MockDroneConfiguration is stored with @Different qualifier", configuration);
        Assert.assertEquals("MockDrone was configured from @Different configuration", DIFFERENT_FIELD,
                configuration.getField());

        getManager().getContext(ClassContext.class).deactivate();
        getManager().getContext(ClassContext.class).destroy(EnrichedClass.class);
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.drone.impl.mockdrone.MockDroneConfiguration

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.