Examples of addPackages()


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

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

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

    @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

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

   {

      WebArchive war = ShrinkWrap.create(WebArchive.class);

      //
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/" + suite);
      war.addPackages(true, "org/gatein/pc/test/portlet/framework");
View Full Code Here

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

      WebArchive war = ShrinkWrap.create(WebArchive.class);

      //
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/" + suite);
      war.addPackages(true, "org/gatein/pc/test/portlet/framework");

      //
View Full Code Here

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

      WebArchive war = ShrinkWrap.create(WebArchive.class);

      //
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/" + suite);
      war.addPackages(true, "org/gatein/pc/test/portlet/framework");

      //
      String properties = version + "/" + type + "/" + suite + "/suite.properties";
View Full Code Here

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

      //
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/" + suite);
      war.addPackages(true, "org/gatein/pc/test/portlet/framework");

      //
      String properties = version + "/" + type + "/" + suite + "/suite.properties";
      if (Thread.currentThread().getContextClassLoader().getResource(properties) != null)
View Full Code Here

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

      //
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/common");
      war.addPackages(true, "org/gatein/pc/test/portlet/" + version + "/" + type + "/" + suite);
      war.addPackages(true, "org/gatein/pc/test/portlet/framework");

      //
      String properties = version + "/" + type + "/" + suite + "/suite.properties";
      if (Thread.currentThread().getContextClassLoader().getResource(properties) != null)
      {
View Full Code Here

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

        final WebArchive testArchive = BaseArchive.baseWar("seamfaces_210.war", true);

        testArchive.addAsLibraries(BaseArchive.retrieveLibs("org.jboss.solder:solder-api", "org.jboss.solder:solder-impl",
                "org.jboss.solder:solder-logging"));

        testArchive.addPackages(true, ViewConfig.class.getPackage(), ViewConfigStoreImpl.class.getPackage(), ViewConfigEnum.class.getPackage())
                .addClasses(SecurityBindingType.class, RestrictAtPhase.class, PhaseIdType.class)
                .addAsServiceProvider(Extension.class, ViewConfigExtension.class);

        return testArchive;
    }
View Full Code Here

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

        WebArchive archive =
                ShrinkWrap.create(WebArchive.class, DEPLOYMENT_NAME + ".war");
        archive.addAsLibraries(runtimeAndTestDependenciesFromPom());

        // Local packages
        archive.addPackages(true, new Filter<ArchivePath>() {
            @Override
            public boolean include(ArchivePath object) {
                // Avoid the model package (for some reason it's being included
                // as a class file)
                return !object.get().startsWith("/org/zanata/model/");
View Full Code Here

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

        listener("org.springframework.web.context.ContextLoaderListener").
        toWebXml();
    WebArchive war = ShrinkWrap.create(WebArchive.class);
    war.setWebXML(new StringAsset(webXml));
    war.addAsWebInfResource(new File("src/test/resources/applicationContext.xml"));
    war.addPackages(true, "examples.tutorial");
    return war;
  }
  // end::deployment[]

  // tag::getApplicationURL[]
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.