Example #1
0
 @Deployment(testable = false)
 public static WebArchive getDeployment() {
   return RewriteTest.getDeployment()
       .addClass(ResourceTestProvider.class)
       .addAsWebResource(new StringAsset("some content"), "exists.txt")
       .addAsWebResource(new StringAsset("some content"), "file.bah")
       .addAsServiceProvider(ConfigurationProvider.class, ResourceTestProvider.class);
 }
 @Deployment(testable = false)
 public static WebArchive getDeployment() {
   return RewriteTest.getDeploymentWithFacesAndCDI()
       .addAsLibrary(RewriteELTest.getRewriteAnnotationArchive())
       .addAsLibrary(RewriteELTest.getRewriteFacesArchive())
       .addAsLibrary(RewriteELTest.getRewriteCDIArchive())
       .addClass(DeferredActionsBean.class)
       .addAsWebResource("action-phases.xhtml", "action.xhtml");
 }
 @Deployment(testable = false)
 public static WebArchive getDeployment() {
   WebArchive deployment =
       RewriteTest.getDeployment()
           .addPackages(true, ServletRoot.class.getPackage())
           .addAsServiceProvider(
               ConfigurationProvider.class, RequestConstraintTransformTestProvider.class);
   return deployment;
 }
 @Deployment(testable = false)
 public static WebArchive getDeployment() {
   WebArchive archive =
       RewriteTest.getDeployment()
           .addAsWebResource(new StringAsset("this is foo"), "test.txt")
           .addClasses(
               TransformPipelineTestProvider.class,
               FooBarTransformer.class,
               UppercaseTransformer.class)
           .addAsServiceProvider(ConfigurationProvider.class, TransformPipelineTestProvider.class);
   return archive;
 }