Package org.jboss.shrinkwrap.api.spec

Examples of org.jboss.shrinkwrap.api.spec.WebArchive


        // Archive which contains an extension and no beans.xml file - not a bean archive
        JavaArchive legacy = ShrinkWrap.create(JavaArchive.class, LEGACY_JAR)
                .addClasses(LegacyExtension.class, LegacyBean.class)
                .addAsServiceProvider(Extension.class, LegacyExtension.class);

        WebArchive webArchive = new WebArchiveBuilder()
                .withClasses(EnterpriseBeanDiscoveryTest.class)
                .notTestArchive()
                .build()
                .setManifest(
                        new StringAsset(Descriptors.create(ManifestDescriptor.class)
View Full Code Here


        deployment.archive().addClasses(TabPanelItemChangeEventBean.class, ItemChangeEventInspection.class);

        addIndexPage(deployment);

        WebArchive archive = deployment.getFinalArchive();
        return archive;
    }
View Full Code Here

        addIndexPage(deployment);
        addHeaderPage(deployment);
        addHeaderButtonPage(deployment);

        WebArchive archive = deployment.getFinalArchive();
        return archive;
    }
View Full Code Here

{

   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest.getDeploymentWithFacesAndCDI()
               .addAsLibrary(RewriteELTest.getRewriteAnnotationArchive())
               .addAsLibrary(RewriteELTest.getRewriteFacesArchive())
               .addAsLibrary(RewriteELTest.getRewriteCDIArchive())
               .addClass(IgnorePostbackBean.class)
               .addAsWebResource("action-postback.xhtml", "action.xhtml");
View Full Code Here

public class WrappedResponseStreamTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ServletRoot.class.getPackage())
               .addAsWebResource(new StringAsset("lowercase"), "index.html")
               .addAsWebResource(new StringAsset("zip me to gzip please and make it zippy"), "gzip.html")
               .addAsServiceProvider(ConfigurationProvider.class, WrappedResponseStreamTestProvider.class);
View Full Code Here

public class HttpForwardConfigurationTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ServletRoot.class.getPackage())
               .addAsWebResource("org/ocpsoft/rewrite/servlet/wrapper/forward.jsp", "forward.jsp")
               .addAsServiceProvider(ConfigurationProvider.class, HttpForwardConfigurationTestProvider.class);
      return deployment;
View Full Code Here

public class ResponseContentInterceptorTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ServletRoot.class.getPackage())
               .addAsWebResource(new StringAsset("UPPERCASE"), "index.html")
               .addAsWebResource(new StringAsset("UPPERCASE"), "unbuffered.html")
               .addAsWebResource(new StringAsset("UPPERCASE"), "forward.html")
View Full Code Here

public class LifecycleControlTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ConfigRoot.class.getPackage())
               .addAsServiceProvider(ConfigurationProvider.class, LifecycleControlConfigurationProvider.class);
      return deployment;
   }
View Full Code Here

public class JoinOtherwiseConfigurationTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ConfigRoot.class.getPackage())
               .addAsServiceProvider(ConfigurationProvider.class, JoinOtherwiseConfigurationProvider.class);
      return deployment;
   }
View Full Code Here

public class CDNConfigurationTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ConfigRoot.class.getPackage())
               .addAsServiceProvider(ConfigurationProvider.class, CDNConfigurationProvider.class);
      return deployment;
   }
View Full Code Here

TOP

Related Classes of org.jboss.shrinkwrap.api.spec.WebArchive

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.