use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WebSecurityJBossSimpleRoleMappingTestCase method deployment.
@Deployment(testable = false)
public static WebArchive deployment() throws Exception {
WebArchive war = ShrinkWrap.create(WebArchive.class, "web-secure.war");
war.addClasses(SecuredServlet.class);
war.addAsWebResource(WebSecurityJBossSimpleRoleMappingTestCase.class.getPackage(), "login.jsp", "login.jsp");
war.addAsWebResource(WebSecurityJBossSimpleRoleMappingTestCase.class.getPackage(), "error.jsp", "error.jsp");
war.addAsWebInfResource(WebSecurityJBossSimpleRoleMappingTestCase.class.getPackage(), "jboss-web-role-mapping.xml", "jboss-web.xml");
war.addAsWebInfResource(WebSecurityJBossSimpleRoleMappingTestCase.class.getPackage(), "web.xml", "web.xml");
war.addAsResource(WebSecurityJBossSimpleRoleMappingTestCase.class.getPackage(), "users.properties", "users.properties");
war.addAsResource(WebSecurityJBossSimpleRoleMappingTestCase.class.getPackage(), "roles.properties", "roles.properties");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class WebSecurityJBossWebXmlSecurityRolesTestCase method deployment.
@Deployment(testable = false)
public static WebArchive deployment() throws Exception {
WebArchive war = ShrinkWrap.create(WebArchive.class, "web-secure.war");
war.addClasses(SecuredServlet.class);
war.addAsWebResource(WebSecurityJBossWebXmlSecurityRolesTestCase.class.getPackage(), "login.jsp", "login.jsp");
war.addAsWebResource(WebSecurityJBossWebXmlSecurityRolesTestCase.class.getPackage(), "error.jsp", "error.jsp");
war.addAsWebInfResource(WebSecurityJBossWebXmlSecurityRolesTestCase.class.getPackage(), "jboss-web-role-mapping.xml", "jboss-web.xml");
war.addAsWebInfResource(WebSecurityJBossWebXmlSecurityRolesTestCase.class.getPackage(), "web.xml", "web.xml");
war.addAsResource(WebSecurityJBossWebXmlSecurityRolesTestCase.class.getPackage(), "users.properties", "users.properties");
war.addAsResource(WebSecurityJBossWebXmlSecurityRolesTestCase.class.getPackage(), "roles.properties", "roles.properties");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment 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.arquillian.container.test.api.Deployment 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.arquillian.container.test.api.Deployment 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;
}
Aggregations