Пример #1
0
 @Deployment
 public static WebArchive deploy() {
   return ShrinkWrap.create(WebArchive.class, "nav-destination-uc006.war")
       .addClass(Pages.class)
       .addClass(ViewConfigTestDrone.class)
       .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive())
       .addAsLibraries(ArchiveUtils.getDeltaSpikeSecurityArchive())
       .addAsWebResource("navigation/wizard1/step1.xhtml", "/wizard1/step1.xhtml")
       .addAsWebInfResource("default/WEB-INF/web.xml", "web.xml")
       .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
 }
Пример #2
0
 @Deployment
 public static WebArchive deploy() {
   return ShrinkWrap.create(WebArchive.class, "injection-uc004.war")
       .addPackage(MyBean.class.getPackage())
       .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive())
       .addAsLibraries(ArchiveUtils.getDeltaSpikeSecurityArchive())
       .addAsWebResource(
           "injection/testValidatorTagParameter.xhtml", "/testValidatorConverter.xhtml")
       .addAsWebInfResource("META-INF/test.taglib.xml", "classes/META-INF/test.taglib.xml")
       .addAsWebInfResource("default/WEB-INF/web.xml", "web.xml")
       .addAsWebInfResource("default/WEB-INF/faces-config.xml", "faces-config.xml")
       .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");
 }