Examples of StringAsset


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

      {
         addAsResource(archive, org);
         addAsResource(archive, new File("target/classes/META-INF"));
      }

      return archive.addAsResource(new StringAsset("placeholder"), "README");
   }
View Full Code Here

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

      if (!new File("target/classes").getAbsolutePath().contains("config-annotations")) {
         addAsResource(archive, new File("../config-annotations/target/classes/org"));
         addAsResource(archive, new File("../config-annotations/target/classes/META-INF"));
      }

      return archive.addAsResource(new StringAsset("placeholder"), "README");
   }
View Full Code Here

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

   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      return RewriteTest.getDeployment()
               .addClass(ResourceReadParamsInConditionProvider.class)
               .addAsWebResource(new StringAsset("some content"), "exists.txt")
               .addAsServiceProvider(ConfigurationProvider.class, ResourceReadParamsInConditionProvider.class);
   }
View Full Code Here

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

   public static WebArchive getDeployment()
   {
      return RewriteTest.getDeployment()
               .addPackages(true, ConfigRoot.class.getPackage())
               .addAsServiceProvider(ConfigurationProvider.class, ForwardEncodingProvider.class)
               .addAsWebResource(new StringAsset("foobar"), "direct/static/foobar.txt")
               .addAsWebResource(new StringAsset("spaces"), "direct/static/with spaces.txt")
               .addAsWebResource(new StringAsset("hash"), "direct/static/with#hash.txt");
   }
View Full Code Here

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

   public static WebArchive getDeployment()
   {
      WebArchive deployment = RewriteTest
               .getDeployment()
               .addPackages(true, ServletRoot.class.getPackage())
               .addAsWebResource(new StringAsset("test page"), "test.html")
               .addAsWebResource(new StringAsset("index page"), "index.html")
               .addAsServiceProvider(ConfigurationProvider.class, HttpConfigurationOrder2TestProvider.class);

      return deployment;
   }
View Full Code Here

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

   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      return RewriteTest.getDeployment()
               .addClass(JSessionIdHandlingProvider.class)
               .addAsWebResource(new StringAsset("some content"), "file.txt")
               .addAsServiceProvider(ConfigurationProvider.class, JSessionIdHandlingProvider.class);
   }
View Full Code Here

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

   @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

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

{
   @Deployment(testable = false)
   public static WebArchive getDeployment()
   {
      return RewriteTest.getDeployment()
               .addAsWebResource(new StringAsset(".class { width: 1 + 2 }"), "test.less")
               .addAsLibraries(getTransformArchive())
               .addAsLibraries(resolveDependency("org.mozilla:rhino"))
               .addClasses(LessIntegrationTestProvider.class)
               .addAsServiceProvider(ConfigurationProvider.class, LessIntegrationTestProvider.class);
   }
View Full Code Here

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

      return RewriteTest.getDeployment()
               .addAsLibrary(RewriteFacesAnnotationsTest.getRewriteAnnotationArchive())
               .addAsLibrary(RewriteFacesAnnotationsTest.getRewriteFacesArchive())
               .addClass(ConcurrencyBean.class)
               .addAsWebResource(
                        new StringAsset("<html>#{concurrencyBean.message}</html>"),
                        "page.xhtml");
   }
View Full Code Here

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

{
   @Deployment(testable = false)
   public static WebArchive createDeployment()
   {
      return PrettyFacesTestBase.getDeployment()
               .addAsWebResource(new StringAsset("some content"), "foobar.txt")
               .addAsWebInfResource("trailingslash/trailingslash-pretty-config.xml", "pretty-config.xml");
   }
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.