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

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


        createDroneCallable(registry, dronePoint);
    }

    private <DRONE> void configureDrone(DroneRegistry registry, DronePoint<DRONE> dronePoint) {
        ArquillianDescriptor descriptor = arquillianDescriptor.get();
        DroneContext context = droneContext.get();
        Validate.stateNotNull(descriptor, "ArquillianDescriptor should not be null");
        Validate.stateNotNull(context, "DroneContext should be available while working with method scoped instances");

        if (context.get(dronePoint).hasConfiguration()) {
View Full Code Here


    @Test
    public void testInitConfigurationDefault() throws Exception {

        BeforeSuite event = new BeforeSuite();

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

        injectDescriptor(descriptor);

        InstanceProducer<SpringDeployerConfiguration> mockProducer = mock(InstanceProducer.class);
        TestReflectionHelper.setFieldValue(instance, "deployerConfiguration", mockProducer);
View Full Code Here

    @Test
    public void testInitConfiguration() throws Exception {

        BeforeSuite event = new BeforeSuite();

        ArquillianDescriptor descriptor = Descriptors.importAs(ArquillianDescriptor.class)
                .fromFile((new File("src/test/resources", "arquillian.xml")));

        injectDescriptor(descriptor);

        InstanceProducer<SpringDeployerConfiguration> mockProducer = mock(InstanceProducer.class);
View Full Code Here

     * @throws Exception if any error occurs
     */
    @Test
    public void testInitConfigurationDefault() throws Exception {

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

        InstanceProducer<SpringIntegrationConfiguration> mockProducer = mock(InstanceProducer.class);
        TestReflectionHelper.setFieldValue(instance, "extensionConfiguration", mockProducer);

        instance.initConfiguration(descriptor);
View Full Code Here

     * @throws Exception if any error occurs
     */
    @Test
    public void testInitConfiguration() throws Exception {

        ArquillianDescriptor descriptor = Descriptors.importAs(ArquillianDescriptor.class).fromStream(
                new FileInputStream(new File("src/test/resources", "arquillian.xml")));

        InstanceProducer<SpringIntegrationConfiguration> mockProducer = mock(InstanceProducer.class);
        TestReflectionHelper.setFieldValue(instance, "extensionConfiguration", mockProducer);

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 = SecurityActions.getProperty("arquillian.deploymentExportPath");
      String exportPath = (systemExport == null || systemExport.length() == 0) ? engine.getDeploymentExportPath():systemExport;
     
      if(exportPath != null && event.getDeployment().isArchiveDeployment())
View Full Code Here

   @Test
   public void shouldBeAbleToLoadEmptyDefaultConfiguration() throws Exception
   {
      registrar.loadConfiguration(new ManagerStarted());
      ArquillianDescriptor desc = descInst.get();

      Assert.assertEquals(0, desc.getContainers().size());
      Assert.assertEquals(0, desc.getGroups().size());
      Assert.assertEquals(0, desc.getExtensions().size());
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("A", desc.getContainers().get(0).getContainerName());
                  // verify mode = class, override test will set it to suite
                  Assert.assertEquals("class", desc.getContainers().get(0).getMode());
               }
            });
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("A", desc.getContainers().get(0).getContainerName());
                  // verify mode = class, override test will set it to suite
                  Assert.assertEquals("class", desc.getContainers().get(0).getMode());
               }
            });
   }
View Full Code Here

            {
               @Override
               public void validate()
               {
                  registrar.loadConfiguration(new ManagerStarted());
                  ArquillianDescriptor desc = descInst.get();

                  Assert.assertEquals(1, desc.getContainers().size());
                  Assert.assertEquals("B", desc.getContainers().get(0).getContainerName());
               }
            });
   }
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.