Package org.jboss.arquillian.spi

Examples of org.jboss.arquillian.spi.TestDeployment


            return builder.openStream();
         }
      });
      try
      {
         new OSGiDeploymentPackager().generateDeployment(new TestDeployment(archive, new ArrayList<Archive<?>>()), new ArrayList<ProtocolArchiveProcessor>());
         fail("RuntimeException expected");
      }
      catch (RuntimeException ex)
      {
         // expected
View Full Code Here


            return builder.openStream();
         }
      });
     
      Collection<Archive<?>> auxArchives = new ArrayList<Archive<?>>();
      Archive<?> result = new OSGiDeploymentPackager().generateDeployment(new TestDeployment(archive, auxArchives), new ArrayList<ProtocolArchiveProcessor>());
      assertNotNull("Result archive not null", result);
   }
View Full Code Here

         }
      });
      try
      {
         Collection<Archive<?>> auxArchives = new ArrayList<Archive<?>>();
         new OSGiDeploymentPackager().generateDeployment(new TestDeployment(archive, auxArchives), new ArrayList<ProtocolArchiveProcessor>());
         fail("RuntimeException expected");
      }
      catch (RuntimeException ex)
      {
         // expected
View Full Code Here

      uninstallBundleList(supportBundles);
   }

   public ContainerMethodExecutor deploy(Context context, final Archive<?> archive) throws DeploymentException
   {
      TestDeployment deployment = context.get(TestDeployment.class);

      BundleList bundleList = new BundleList();
      context.add(BundleList.class, bundleList);

      // Install the application archive
      BundleHandle appHandle = installInternal(context, archive);
      bundleList.add(appHandle);

      // Install the auxiliary archives
      for (Archive<?> auxArchive : deployment.getAuxiliaryArchives())
      {
         BundleHandle auxHandle = installInternal(context, auxArchive);
         bundleList.add(auxHandle);
      }
View Full Code Here

    */
   public TestDeployment generate(TestClass testCase)
   {
      ApplicationArchiveGenerator generator = serviceLoader.onlyOne(ApplicationArchiveGenerator.class);
      Archive<?> appArchive = generator.generateApplicationArchive(testCase);
      return new TestDeployment(appArchive);
   }
View Full Code Here

      applyApplicationProcessors(applicationArchive, testCase);
     
      List<Archive<?>> auxiliaryArchives = loadAuxiliaryArchives();
      applyAuxiliaryProcessors(auxiliaryArchives);

      return new TestDeployment(applicationArchive, auxiliaryArchives);
   }
View Full Code Here

      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

      uninstallBundleList(supportBundles);
   }

   public ContainerMethodExecutor deploy(Context context, final Archive<?> archive) throws DeploymentException
   {
      TestDeployment deployment = context.get(TestDeployment.class);

      BundleList bundleList = new BundleList();
      context.add(BundleList.class, bundleList);

      // Install the application archive
      BundleHandle appHandle = installInternal(context, archive);
      bundleList.add(appHandle);

      // Install the auxiliary archives
      for (Archive<?> auxArchive : deployment.getAuxiliaryArchives())
      {
         BundleHandle auxHandle = installInternal(context, auxArchive);
         bundleList.add(auxHandle);
      }
View Full Code Here

      uninstallBundleList(supportBundles);
   }

   public ContainerMethodExecutor deploy(Context context, final Archive<?> archive) throws DeploymentException
   {
      TestDeployment deployment = context.get(TestDeployment.class);

      BundleList bundleList = new BundleList();
      context.add(BundleList.class, bundleList);

      // Install the application archive
      BundleHandle appHandle = installInternal(context, archive);
      bundleList.add(appHandle);

      // Install the auxiliary archives
      for (Archive<?> auxArchive : deployment.getAuxiliaryArchives())
      {
         BundleHandle auxHandle = installInternal(context, auxArchive);
         bundleList.add(auxHandle);
      }
View Full Code Here

         }
         ClassLoader classLoader = containerRegistry.get().getContainer(deployment.getTarget()).getClassLoader();
        
         deployment.setTestableArchive(
               packager.generateDeployment(
                     new TestDeployment(applicationArchive, auxiliaryArchives),
                     serviceLoader.get().all(classLoader, ProtocolArchiveProcessor.class)));
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.TestDeployment

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.