Package org.jboss.arquillian.drone.mockdrone

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


      manager.fire(new BeforeClass(EnrichedClass.class));

      DroneContext context = manager.getContext(ClassContext.class).getObjectStore().get(DroneContext.class);
      Assert.assertNotNull("Drone object holder was created in the context", context);

      MockDroneConfiguration configuration = context.get(MockDroneConfiguration.class);
      Assert.assertNull("There is no MockDroneConfiguration with @Default qualifier", configuration);

      configuration = context.get(MockDroneConfiguration.class, Different.class);
      Assert.assertNotNull("MockDroneConfiguration is stored with @Different qualifier", configuration);

      Assert.assertEquals("MockDroneConfiguration field is set via System properties", MockDroneFactory.FIELD_OVERRIDE, configuration.getField());

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

TOP

Related Classes of org.jboss.arquillian.drone.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.