Search in sources :

Example 16 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project quickstarts by jboss-switchyard.

the class JCAInflowBindingTest method createActiveMQRAR.

@Deployment(order = 1, name = "activemq-ra.rar")
public static ResourceAdapterArchive createActiveMQRAR() throws Exception {
    startActiveMQBroker();
    File rar = Maven.resolver().loadPomFromFile("./pom.xml").resolve("org.apache.activemq:activemq-rar:rar:?").withoutTransitivity().asSingleFile();
    return ShrinkWrap.create(ZipImporter.class, "activemq-ra.rar").importFrom(new ZipFile(rar)).as(ResourceAdapterArchive.class);
}
Also used : ZipFile(java.util.zip.ZipFile) ZipFile(java.util.zip.ZipFile) File(java.io.File) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 17 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project javaee7-samples by javaee-samples.

the class MultiplePuTest method createDeployment.

@Deployment
public static WebArchive createDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class).addPackage("org.javaee7.jpa.multiple.pu").addAsResource("META-INF/persistence.xml").addAsResource("META-INF/create.sql").addAsResource("META-INF/drop.sql").addAsResource("META-INF/load.sql");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 18 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project javaee7-samples by javaee-samples.

the class SchemaGenScriptsExternalTest method createDeployment.

@Deployment
public static WebArchive createDeployment() throws Exception {
    copyURLToFile(currentThread().getContextClassLoader().getResource("META-INF/create.sql"), new File("/tmp/create.sql"));
    copyURLToFile(currentThread().getContextClassLoader().getResource("META-INF/drop.sql"), new File("/tmp/drop.sql"));
    copyURLToFile(currentThread().getContextClassLoader().getResource("META-INF/load.sql"), new File("/tmp/load.sql"));
    WebArchive war = ShrinkWrap.create(WebArchive.class).addPackage("org.javaee7.jpasamples.schema.gen.scripts.external").addAsResource("META-INF/persistence.xml").addAsResource("META-INF/create.sql").addAsResource("META-INF/drop.sql").addAsResource("META-INF/load.sql");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) File(java.io.File) FileUtils.copyURLToFile(org.apache.commons.io.FileUtils.copyURLToFile) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 19 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project javaee7-samples by javaee-samples.

the class EntityGraphTest method createDeployment.

@Deployment
public static WebArchive createDeployment() {
    WebArchive war = ShrinkWrap.create(WebArchive.class).addPackage("org.javaee7.jpa.entitygraph").addAsResource("META-INF/persistence.xml").addAsResource("META-INF/create.sql").addAsResource("META-INF/drop.sql").addAsResource("META-INF/load.sql");
    System.out.println(war.toString(true));
    return war;
}
Also used : WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 20 with Deployment

use of org.jboss.arquillian.container.test.api.Deployment in project javaee7-samples by javaee-samples.

the class LockingOptimisticTest method createDeployment.

@Deployment
public static WebArchive createDeployment() {
    BeansDescriptor beansXml = Descriptors.create(BeansDescriptor.class);
    WebArchive war = ShrinkWrap.create(WebArchive.class).addPackage("org.javaee7.jpa.locking.optimistic").addAsResource("META-INF/persistence.xml").addAsResource("META-INF/load.sql").addAsWebInfResource(new StringAsset(beansXml.getOrCreateAlternatives().clazz(MovieBeanAlternative.class.getName()).up().exportAsString()), beansXml.getDescriptorName());
    System.out.println(war.toString(true));
    return war;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) BeansDescriptor(org.jboss.shrinkwrap.descriptor.api.beans10.BeansDescriptor) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)853 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)523 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)410 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)288 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)139 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)139 Asset (org.jboss.shrinkwrap.api.asset.Asset)45 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)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 JMSOperations (org.jboss.as.test.integration.common.jms.JMSOperations)16 File (java.io.File)15 SocketPermission (java.net.SocketPermission)13 BatchTestHelper (org.javaee7.util.BatchTestHelper)13 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)13 Util (org.jboss.as.test.shared.integration.ejb.security.Util)11 Properties (java.util.Properties)10