Package org.jboss.shrinkwrap.api.spec

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


      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

      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

      //
      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

      //
      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

        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

        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

        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

*/
public class AuthorizationTestCase extends AbstractShiroTestCase {
  @Deployment(testable = false)
  public static WebArchive createDeployment() {
    WebArchive war = createServletDeployment(InjectorProvider.SPRING, "plugin.shiro.authz");
    war.addPackages(true, SimpleRealm.class.getPackage());
    return war;
  }

  private static Map<String, String> urls = new HashMap<String, String>();

View Full Code Here

    String webXml = desc.toWebXml();
    WebArchive war = ShrinkWrap.create(WebArchive.class);
    war.setWebXML(new StringAsset(webXml));
    war.addAsWebInfResource(new File("src/test/resources/applicationContext.xml"));
    war.addAsWebInfResource(new File("src/main/webapp/WEB-INF/portlet.xml"));
    war.addPackages(true, "examples.tutorial");
//    WebArchive war = Helper.createBasePortletDeployment("spring");
//    war.addAsWebInfResource(new File("src/test/resources/spring.xml"));
//    war.addPackages(true, "examples.tutorial");
    return war;
  }
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.