Package org.jboss.arquillian.impl.configuration.api

Examples of org.jboss.arquillian.impl.configuration.api.ArquillianDescriptor


            .context(ApplicationContextImpl.class)
            .context(SuiteContextImpl.class)
            .context(ClassContextImpl.class)
            .extensions(DroneRegistrar.class, DroneConfigurator.class, DroneTestEnricher.class).create();

      ArquillianDescriptor desc = Descriptors.create(ArquillianDescriptor.class)
            .extension("mockdrone-different")
            .property("field", DIFFERENT_FIELD)
            .extension("mockdrone-methodargumentone")
            .property("field", METHOD_ARGUMENT_ONE_FIELD);
View Full Code Here


   }

   @Test
   public void shouldRestartContainerForEveryX() throws Exception
   {
      ArquillianDescriptor desc = Descriptors.create(ArquillianDescriptor.class)
            .engine().maxTestClassesBeforeRestart(5);

      bind(ApplicationScoped.class, ArquillianDescriptor.class, desc);
     
      for(int i = 0; i < 10; i++)
View Full Code Here

   }
  
   @Test
   public void shouldNotForceRestartIfMaxDeploymentsNotSet() throws Exception
   {
      ArquillianDescriptor desc = Descriptors.create(ArquillianDescriptor.class)
            .engine();

      bind(ApplicationScoped.class, ArquillianDescriptor.class, desc);
     
      for(int i = 0; i < 10; i++)
View Full Code Here

   @SuppressWarnings({ "rawtypes", "unchecked" })
   private Object constructDrone(Method method, Class<?> type, Class<? extends Annotation> qualifier)
   {
      DroneRegistry regs = registry.get();
      ArquillianDescriptor desc = arquillianDescriptor.get();

      Configurator configurator = regs.getConfiguratorFor(type);
      Instantiator instantiator = regs.getInstantiatorFor(type);

      // store in map if not stored already
View Full Code Here

      }
   }
  
   private boolean shouldRestart()
   {
      ArquillianDescriptor descriptor = configuration.get();
      Integer maxTestClasses = descriptor.engine().getMaxTestClassesBeforeRestart();
      if(maxTestClasses == null)
      {
         return false;
      }
      if(maxTestClasses > -1)
View Full Code Here

   @Inject @ApplicationScoped
   private InstanceProducer<ArquillianDescriptor> descriptorInst;

   public void loadConfiguration(@Observes ManagerStarted event)
   {
      ArquillianDescriptor descriptor;
     
      InputStream input = loadArquillianXml();
      if(input != null)
      {
         descriptor = Descriptors.importAs(ArquillianDescriptor.class)
View Full Code Here

   @Inject
   private Instance<ArquillianDescriptor> configuration;
  
   public void callback(@Observes BeforeDeploy event) throws Exception
   {
      ArquillianDescriptor descriptor = configuration.get();
      if(descriptor == null)
      {
         return;
      }
      EngineDef engine = descriptor.engine();

      String systemExport = System.getProperty("arquillian.deploymentExportPath");
      String exportPath = (systemExport == null || systemExport.length() == 0) ? engine.getDeploymentExportPath():systemExport;
     
      if(exportPath != null && event.getDeployment().isArchiveDeployment())
View Full Code Here

TOP

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