use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class WebSecurityJaspiTestCase method deployment.
@Deployment
public static WebArchive deployment() throws Exception {
WebArchive war = ShrinkWrap.create(WebArchive.class, "web-secure-jaspi.war");
war.addClass(SecuredServlet.class);
war.addAsWebInfResource(WebSecurityBASICTestCase.class.getPackage(), "jboss-web.xml", "jboss-web.xml");
war.addAsWebInfResource(WebSecurityBASICTestCase.class.getPackage(), "web.xml", "web.xml");
war.addAsResource(WebSecurityBASICTestCase.class.getPackage(), "users.properties", "users.properties");
war.addAsResource(WebSecurityBASICTestCase.class.getPackage(), "roles.properties", "roles.properties");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class WebSecurityProgrammaticLoginTestCase method deployment.
@Deployment
public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "web-secure-programmatic-login.war");
war.addAsResource(WebSecurityProgrammaticLoginTestCase.class.getPackage(), "users.properties", "users.properties");
war.addAsResource(WebSecurityProgrammaticLoginTestCase.class.getPackage(), "roles.properties", "roles.properties");
war.addAsManifestResource(WebSecurityProgrammaticLoginTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
war.addAsWebInfResource(WebSecurityProgrammaticLoginTestCase.class.getPackage(), "jboss-web.xml", "jboss-web.xml");
war.addAsWebInfResource(WebSecurityProgrammaticLoginTestCase.class.getPackage(), "web.xml", "web.xml");
war.addClass(LoginServlet.class);
war.addClass(SecuredServlet.class);
war.addClass(AbstractSecurityDomainSetup.class);
war.addPackage(CommonCriteria.class.getPackage());
war.addAsManifestResource(createPermissionsXmlAsset(new RuntimePermission("org.jboss.security.*")), "permissions.xml");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class TransportGuaranteeTestCase method deployMixedWar.
@Deployment(name = TG_MIXED + WAR, order = 3, testable = false)
public static WebArchive deployMixedWar() {
WebArchive war = ShrinkWrap.create(WebArchive.class, TG_MIXED + WAR);
war.addClass(TransportGuaranteeMixedServlet.class);
war.addAsResource(TransportGuaranteeTestCase.class.getPackage(), "users.properties", "users.properties");
war.addAsResource(TransportGuaranteeTestCase.class.getPackage(), "roles.properties", "roles.properties");
war.setWebXML(TransportGuaranteeTestCase.class.getPackage(), "mixed-web.xml");
war.addAsWebInfResource(TransportGuaranteeTestCase.class.getPackage(), "jboss-web.xml", "jboss-web.xml");
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class DefaultConcurrencyServletTestCase method deployment.
@Deployment
public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, DefaultConcurrencyServletTestCase.class.getSimpleName() + ".war");
war.addClasses(HttpRequest.class, DefaultConcurrencyTestServlet.class);
return war;
}
use of org.jboss.shrinkwrap.api.spec.WebArchive in project wildfly by wildfly.
the class DefaultServletMultipartConfigTestCase method deploy2.
@Deployment
public static Archive<?> deploy2() throws Exception {
WebArchive jar = ShrinkWrap.create(WebArchive.class, "multipathTest.war");
jar.addClasses(MultipartFilter.class);
jar.addAsWebInfResource(DefaultServletMultipartConfigTestCase.class.getPackage(), "web.xml", "web.xml");
return jar;
}
Aggregations