use of org.jboss.arquillian.container.test.api.Deployment 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.arquillian.container.test.api.Deployment 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;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class RootContextEarUnitTestCase method earDeployment.
@Deployment(name = "root-web.ear", testable = false)
public static EnterpriseArchive earDeployment() {
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
String resourcesLocation = "org/jboss/as/test/integration/web/rootcontext/resources/";
WebArchive war = ShrinkWrap.create(WebArchive.class, "root-web.war");
war.setWebXML(tccl.getResource(resourcesLocation + "root-web.xml"));
war.addAsWebInfResource(tccl.getResource(resourcesLocation + "jboss-web.xml"), "jboss-web.xml");
war.addAsWebResource(tccl.getResource(resourcesLocation + "index.html"), "index.html");
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "root-web.ear");
ear.setApplicationXML(tccl.getResource(resourcesLocation + "application-root.xml"));
ear.addAsModule(war);
return ear;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class RootContextWarUnitTestCase method warDeployment.
@Deployment(name = "root-context.war", testable = false)
public static WebArchive warDeployment() {
ClassLoader tccl = Thread.currentThread().getContextClassLoader();
String resourcesLocation = "org/jboss/as/test/integration/web/rootcontext/resources/";
WebArchive war = ShrinkWrap.create(WebArchive.class, "root-context.war");
war.setWebXML(tccl.getResource(resourcesLocation + "root-web.xml"));
war.addAsWebInfResource(tccl.getResource(resourcesLocation + "jboss-web.xml"), "jboss-web.xml");
war.addAsWebResource(tccl.getResource(resourcesLocation + "index.html"), "index.html");
return war;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class CookieUnitTestCase method deployment.
@Deployment(testable = false)
public static WebArchive deployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class, "jbosstest-cookie.war");
war.addClass(CookieReadServlet.class);
war.addClass(CookieServlet.class);
return war;
}
Aggregations