Search in sources :

Example 1 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive in project javaee7-samples by javaee-samples.

the class BatchChunkExceptionTest method createDeployment.

/**
     * We're just going to deploy the application as a +web archive+. Note the inclusion of the following files:
     *
     * [source,file]
     * ----
     * /META-INF/batch-jobs/myJob.xml
     * ----
     *
     * The +myJob.xml+ file is needed for running the batch definition.
     */
@Deployment
public static WebArchive createDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class).addClass(BatchTestHelper.class).addPackage("org.javaee7.batch.chunk.exception").addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")).addAsResource("META-INF/batch-jobs/myJob.xml");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BatchTestHelper(org.javaee7.util.BatchTestHelper) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 2 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive in project javaee7-samples by javaee-samples.

the class BatchChunkMapperTest method createDeployment.

/**
     * We're just going to deploy the application as a +web archive+. Note the inclusion of the following files:
     *
     * [source,file]
     * ----
     * /META-INF/batch-jobs/myJob.xml
     * ----
     *
     * The +myJob.xml+ file is needed for running the batch definition.
     */
@Deployment
public static WebArchive createDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class).addClass(BatchTestHelper.class).addPackage("org.javaee7.batch.sample.chunk.mapper").addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")).addAsResource("META-INF/batch-jobs/myJob.xml");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BatchTestHelper(org.javaee7.util.BatchTestHelper) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 3 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive in project javaee7-samples by javaee-samples.

the class BatchChunkOptionalProcessorTest method createDeployment.

/**
     * We're just going to deploy the application as a +web archive+. Note the inclusion of the following files:
     *
     * [source,file]
     * ----
     * /META-INF/batch-jobs/myJob.xml
     * ----
     *
     * The +myJob.xml+ file is needed for running the batch definition.
     */
@Deployment
public static WebArchive createDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class).addClass(BatchTestHelper.class).addPackage("org.javaee7.batch.chunk.optional.processor").addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")).addAsResource("META-INF/batch-jobs/myJob.xml");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BatchTestHelper(org.javaee7.util.BatchTestHelper) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 4 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive in project javaee7-samples by javaee-samples.

the class BatchChunkPartitionTest method createDeployment.

/**
     * We're just going to deploy the application as a +web archive+. Note the inclusion of the following files:
     *
     * [source,file]
     * ----
     * /META-INF/batch-jobs/myJob.xml
     * ----
     *
     * The +myJob.xml+ file is needed for running the batch definition.
     */
@Deployment
public static WebArchive createDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class).addClass(BatchTestHelper.class).addPackage("org.javaee7.batch.sample.chunk.partition").addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")).addAsResource("META-INF/batch-jobs/myJob.xml");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BatchTestHelper(org.javaee7.util.BatchTestHelper) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 5 with WebArchive

use of org.jboss.shrinkwrap.api.spec.WebArchive in project javaee7-samples by javaee-samples.

the class ChunkSimpleTest method createDeployment.

/**
     * We're just going to deploy the application as a +web archive+. Note the inclusion of the following files:
     *
     * [source,file]
     * ----
     * /META-INF/batch-jobs/myJob.xml
     * ----
     *
     * The +myJob.xml+ file is needed for running the batch definition.
     */
@Deployment
public static WebArchive createDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class).addClass(BatchTestHelper.class).addPackage("org.javaee7.batch.chunk.simple").addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml")).addAsResource("META-INF/batch-jobs/myJob.xml");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BatchTestHelper(org.javaee7.util.BatchTestHelper) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)505 Deployment (org.jboss.arquillian.container.test.api.Deployment)409 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)159 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)104 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)83 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)80 HttpRequest (org.jboss.as.test.integration.common.HttpRequest)28 File (java.io.File)22 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)14 BatchTestHelper (org.javaee7.util.BatchTestHelper)13 PropertyPermission (java.util.PropertyPermission)11 ZipExporter (org.jboss.shrinkwrap.api.exporter.ZipExporter)11 SocketPermission (java.net.SocketPermission)10 ZipExporterImpl (org.jboss.shrinkwrap.impl.base.exporter.zip.ZipExporterImpl)10 CommonCriteria (org.jboss.as.test.categories.CommonCriteria)9 BeforeClass (org.junit.BeforeClass)9 Util (org.jboss.as.test.shared.integration.ejb.security.Util)7 URL (java.net.URL)6 FilePermission (java.io.FilePermission)5 BeansDescriptor (org.jboss.shrinkwrap.descriptor.api.beans10.BeansDescriptor)5