Package org.jboss.arquillian.spi.event.container

Examples of org.jboss.arquillian.spi.event.container.BeforeDeploy


      Validate.stateNotNull(container, "No " + DeployableContainer.class.getName() + " found in context");
     
      Archive<?> deployment = context.get(Archive.class);
      Validate.stateNotNull(deployment, "No " + Archive.class.getName() + " found in context");
     
      context.fire(new BeforeDeploy());
      ContainerMethodExecutor executor = container.deploy(context, deployment);
      context.add(ContainerMethodExecutor.class, executor);
      context.fire(new AfterDeploy());
   }
View Full Code Here


   }

   @Test
   public void shouldHandleNoConfigurationInContext() throws Exception
   {
      fire(new BeforeDeploy(deployableContainer, deployment));

      fileShouldExist(false);
   }
View Full Code Here

      System.setProperty(ARQUILLIAN_DEPLOYMENT_EXPORT_PATH, EXPORT_PATH);
      try
      {
         bind(ApplicationScoped.class, ArquillianDescriptor.class, Descriptors.create(ArquillianDescriptor.class));
        
         fire(new BeforeDeploy(deployableContainer, deployment));
  
         fileShouldExist(true);
      }
      finally
      {
View Full Code Here

   @Test
   public void shouldNotExportIfDeploymentExportPathNotSet() throws Exception
   {
      bind(ApplicationScoped.class, ArquillianDescriptor.class, Descriptors.create(ArquillianDescriptor.class));

      fire(new BeforeDeploy(deployableContainer, deployment));

      fileShouldExist(false);
   }
View Full Code Here

            .deploymentExportPath(EXPORT_PATH));

      deployment = new DeploymentDescription(DEPLOYMENT_NAME, Descriptors.create(WebAppDescriptor.class));
      deployment.setTarget(new TargetDescription(TARGET_NAME));
     
      fire(new BeforeDeploy(deployableContainer, deployment));

      fileShouldExist(false);
   }
View Full Code Here

   public void shouldBeExportedWhenDeploymentExportPathIsSet() throws Exception
   {
      bind(ApplicationScoped.class, ArquillianDescriptor.class, Descriptors.create(ArquillianDescriptor.class).engine()
            .deploymentExportPath(EXPORT_PATH));

      fire(new BeforeDeploy(deployableContainer, deployment));

      fileShouldExist(true);
   }
View Full Code Here

   {
      System.setProperty(ArchiveDeploymentToolingExporter.ARQUILLIAN_TOOLING_DEPLOYMENT_FOLDER, EXPORT_FOLDER);
     
      //context.add(Archive.class, ShrinkWrap.create(JavaArchive.class, "test.jar"));

      fire(new BeforeDeploy(deployableContainer, deployment));
     
      Assert.assertTrue(new File(EXPORT_FOLDER + getClass().getName() + ".xml").exists());
   }
View Full Code Here

             * TODO: should the DeploymentDescription producer some how be automatically registered ?
             * Or should we just 'know' who is the first one to create the context
             */
            deploymentDescription.set(deployment);
           
            deployEvent.fire(new BeforeDeploy(deployableContainer, deployment));

            if(deployment.isArchiveDeployment())
            {
               protocolMetadata.set(deployableContainer.deploy(
                     deployment.getTestableArchive() != null ? deployment.getTestableArchive():deployment.getArchive()));
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.event.container.BeforeDeploy

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.