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);
}
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;
}
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;
}
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;
}
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;
}
Aggregations