Package org.jboss.shrinkwrap.api.spec

Examples of org.jboss.shrinkwrap.api.spec.JavaArchive.addPackages()


                        .addServiceProvider(
                              TestRunner.class,
                              JUnitTestRunner.class);
      try
      {
         archive.addPackages(
               true,
               Package.getPackage("junit.framework"));
      }
      catch (Exception e)
      {
View Full Code Here


        Collection<JavaArchive> deps = Arrays.asList(Maven.resolver().loadPomFromFile("pom.xml")
            .resolve(thirdPartyDeps).withTransitivity().as(JavaArchive.class));

        //we need to pull in the naming hack classes from the server jar so that our EAR behaves the same
        testEjb.addPackages(true, "org.rhq.enterprise.server.naming").addClass(
            AllowRhqServerInternalsAccessPermission.class);

        //we also need to pull in the special startup beans from the server/itests-2 that will initialize the naming
        //subsystem
        testEjb.addClasses(StrippedDownStartupBean.class, StrippedDownStartupBeanPreparation.class);
View Full Code Here

                        .addServiceProvider(
                              TestRunner.class,
                              JUnitTestRunner.class);
      try
      {
         archive.addPackages(
               true,
               Package.getPackage("junit.framework"));
      }
      catch (Exception e)
      {
View Full Code Here

    @Override
    public Archive<?> createAuxiliaryArchive() {
        JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "arquillian-testenricher-osgi.jar");
        archive.addAsServiceProvider(LoadableExtension.class, OSGiEnricherExtension.class);
        archive.addPackages(false, OSGiTestEnricher.class.getPackage(), StartLevelAware.class.getPackage());
        return archive;
    }
}
View Full Code Here

         PortletUtilsTestCase.class,
         StringCodec.class,
         StringCodecTestCase.class,
         TestPortletApplicationDeployer.class
      );
      classes.addPackages(
         true,
         "org.gatein.pc.test.bootstrap",
         "org.gatein.pc.test.controller",
         "org.gatein.pc.test.portlet.framework",
         "org.gatein.pc.test.tck",
View Full Code Here

                        .addServiceProvider(
                              TestRunner.class,
                              JUnitTestRunner.class);
      try
      {
         archive.addPackages(
               true,
               Package.getPackage("junit.framework"));
      }
      catch (Exception e)
      {
View Full Code Here

    @Override
    public Archive<?> createAuxiliaryArchive() {
        JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "arquillian-testenricher-osgi.jar");
        archive.addAsServiceProvider(RemoteLoadableExtension.class, OSGiEnricherRemoteExtension.class);
        archive.addPackages(false, OSGiTestEnricher.class.getPackage(), StartLevelAware.class.getPackage());
        return archive;
    }
}
View Full Code Here

                        .addAsServiceProvider(
                              TestRunner.class,
                              JUnitTestRunner.class);
      try
      {
         archive.addPackages(
               true,
               Package.getPackage("junit.framework"));
      }
      catch (Exception e)
      {
View Full Code Here

    @Override
    public Archive<?> createAuxiliaryArchive() {
        JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "arquillian-testenricher-osgi.jar");
        archive.addAsServiceProvider(RemoteLoadableExtension.class, OSGiEnricherRemoteExtension.class);
        archive.addPackages(false, BundleAssociation.class.getPackage(), StartLevelAware.class.getPackage());
        return archive;
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.