Package org.jboss.shrinkwrap.api.spec

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


public class HttpConfigurationOrderTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ServletRoot.class.getPackage())
               .addAsServiceProvider(ConfigurationProvider.class, HttpConfigurationTestProvider.class,
                        HttpConfigurationTestProviderTwo.class);
View Full Code Here


{
   @Deployment(testable = false)
   @ShouldThrowException(Exception.class)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest.getDeployment()
               .addPackages(true, ServletRoot.class.getPackage())
               .addAsResource(new StringAsset("org.ocpsoft.rewrite.servlet.config.NonExistentConfigProvider"),
                        "/META-INF/services/org.ocpsoft.rewrite.config.ConfigurationProvider");
      return deployment;
   }
View Full Code Here

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

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

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

public class MapingIdNamingTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = PrettyFacesTestBase.getDeployment()
               .addAsWebResource("rule_naming/index.xhtml", "index.xhtml")
               .addAsWebResource("rule_naming/test.xhtml", "test.xhtml")
               .addAsWebInfResource("rule_naming/pretty-config.xml", "pretty-config.xml");

      return deployment;
View Full Code Here

public class PrettyContextTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = PrettyFacesTestBase.getDeployment()
               .addAsWebResource("context/index.xhtml", "index.xhtml")
               .addAsWebInfResource("context/pretty-config.xml", "pretty-config.xml");

      return deployment;
   }
View Full Code Here

public class HistoryRewriteRootContextConfigurationTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment("ROOT.war")
               // The TomEE Arquillian adapter doesn't like ROOT.war, so we force the root context path via context.xml
               .addAsManifestResource(new StringAsset("<Context path=\"\"/>"), "context.xml")
               // required for Glassfish to get application to the root context path
               .addAsWebInfResource(new StringAsset("<glassfish-web-app><context-root>/</context-root></glassfish-web-app>"),
View Full Code Here

public class HistoryRewriteConfigurationTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addAsWebResource(new StringAsset(""), "index.html")
               .addAsServiceProvider(ConfigurationProvider.class, HistoryRewriteConfiguration.class);
      return deployment;
   }
View Full Code Here

public class PhaseOperationTest extends RewriteTest
{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      WebArchive deployment = FacesBase
               .getDeployment()
               .addClasses(PhaseOperationTestConfigurationProvider.class)
               .addAsServiceProvider(ConfigurationProvider.class, PhaseOperationTestConfigurationProvider.class)
               .addAsWebResource("empty.xhtml", "empty.xhtml");
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.