Examples of StringAsset


Examples of org.jboss.shrinkwrap.api.asset.StringAsset

   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>"),
                        "glassfish-web.xml")
               .addAsWebResource(new StringAsset(""), "index.html")
               .addAsServiceProvider(ConfigurationProvider.class, HistoryRewriteConfiguration.class);
      return deployment;
   }
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.