Search in sources :

Example 61 with Deployment

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;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 62 with Deployment

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;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 63 with Deployment

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;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 64 with Deployment

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;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 65 with Deployment

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;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)869 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)530 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)423 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)299 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)146 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)139 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)48 Asset (org.jboss.shrinkwrap.api.asset.Asset)45 HttpRequest (org.jboss.as.test.integration.common.HttpRequest)28 TargetsContainer (org.jboss.arquillian.container.test.api.TargetsContainer)27 PropertyPermission (java.util.PropertyPermission)26 CommonCriteria (org.jboss.as.test.categories.CommonCriteria)23 AbstractMgmtTestBase (org.jboss.as.test.integration.management.base.AbstractMgmtTestBase)23 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)22 File (java.io.File)17 JMSOperations (org.jboss.as.test.integration.common.jms.JMSOperations)16 SocketPermission (java.net.SocketPermission)13 BatchTestHelper (org.javaee7.util.BatchTestHelper)13 Util (org.jboss.as.test.shared.integration.ejb.security.Util)11 Properties (java.util.Properties)10