Package org.jboss.arquillian.impl

Examples of org.jboss.arquillian.impl.DeploymentGenerator


   /* (non-Javadoc)
    * @see org.jboss.arquillian.spi.event.suite.EventHandler#callback(org.jboss.arquillian.spi.Context, java.lang.Object)
    */
   public void callback(Context context, ClassEvent event) throws Exception
   {
      DeploymentGenerator generator = context.get(DeploymentGenerator.class);
      Validate.stateNotNull(generator, "No " + DeploymentGenerator.class.getName() + " found in context");
     
      Archive<?> deployment = generator.generate(event.getTestClass());
     
      context.add(Archive.class, deployment);
   }
View Full Code Here


   /* (non-Javadoc)
    * @see org.jboss.arquillian.spi.event.suite.EventHandler#callback(org.jboss.arquillian.spi.Context, java.lang.Object)
    */
   public void callback(Context context, ClassEvent event) throws Exception
   {
      DeploymentGenerator generator = context.get(DeploymentGenerator.class);
      Validate.stateNotNull(generator, "No " + DeploymentGenerator.class.getName() + " found in context");
     
      Archive<?> deployment = generator.generate(context, event.getTestClass());
     
      context.add(Archive.class, deployment);
   }
View Full Code Here

   public void callback(Context context, ClassEvent event) throws Exception
   {
      ServiceLoader serviceLoader = context.getServiceLoader();
      DeploymentPackager packager = serviceLoader.onlyOne(DeploymentPackager.class);
     
      DeploymentGenerator generator = context.get(DeploymentGenerator.class);
      Validate.stateNotNull(generator, "No " + DeploymentGenerator.class.getName() + " found in context");
     
      TestDeployment deployment = generator.generate(event.getTestClass());
      Archive<?> archive = packager.generateDeployment(context, deployment);
     
      context.add(TestDeployment.class, deployment);
      context.add(Archive.class, archive);
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.impl.DeploymentGenerator

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.