use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class MinimumPermissionsTestCase method deployment.
/**
* Test deployment with {@link PrintSystemPropertyServlet} and without any permissions deployment descriptor.
*
* @return
*/
@Deployment(name = DEPLOYMENT, testable = false)
public static WebArchive deployment() {
LOGGER.debug("Start WAR deployment");
final WebArchive war = ShrinkWrap.create(WebArchive.class, DEPLOYMENT + ".war");
war.addClasses(PrintSystemPropertyServlet.class);
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WebSecurityCERTTestCase method deployment.
@Deployment
public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "web-secure-client-cert.war");
war.addClass(SecuredServlet.class);
war.addAsWebInfResource(WebSecurityCERTTestCase.class.getPackage(), "jboss-web.xml", "jboss-web.xml");
war.addAsWebInfResource(WebSecurityCERTTestCase.class.getPackage(), "web.xml", "web.xml");
war.addAsResource(WebSecurityCERTTestCase.class.getPackage(), "users.properties", "users.properties");
war.addAsResource(WebSecurityCERTTestCase.class.getPackage(), "roles.properties", "roles.properties");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WebSecurityDIGESTTestCase method deployment.
@Deployment(name = DEPLOYMENT)
public static WebArchive deployment() throws Exception {
final WebArchive war = ShrinkWrap.create(WebArchive.class, DEPLOYMENT + ".war");
war.addClasses(SimpleServlet.class, SimpleSecuredServlet.class);
war.addAsResource(new StringAsset(USERS), "users.properties");
war.addAsResource(new StringAsset(ROLES), "roles.properties");
war.addAsWebInfResource(Utils.getJBossWebXmlAsset(SECURITY_DOMAIN_NAME), "jboss-web.xml");
war.addAsWebInfResource(WebSecurityDIGESTTestCase.class.getPackage(), "web.xml", "web.xml");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class ServletLifecycleMethodDescriptorTestCase method single.
@Deployment
public static WebArchive single() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "single.war");
war.addClasses(HttpRequest.class, LifeCycleMethodServlet.class);
war.addAsWebInfResource(ServletLifecycleMethodDescriptorTestCase.class.getPackage(), "web.xml", "web.xml");
war.addAsManifestResource(createPermissionsXmlAsset(new JndiPermission("java:global/env/foo", "bind")), "permissions.xml");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class ServletResourceOverlaysTestCase method single.
@Deployment
public static WebArchive single() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "single.war");
war.addAsWebResource(new StringAsset("a"), "a.txt");
war.addAsWebResource(new StringAsset("b"), "b.txt");
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "test.jar");
jar.addAsManifestResource(new StringAsset("b - overlay"), new BasicPath("resources", "b.txt"));
jar.addAsManifestResource(new StringAsset("c - overlay"), new BasicPath("resources", "c.txt"));
war.addAsLibrary(jar);
return war;
}
Aggregations