use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class AfterResourceCreationDeploymentTestCase method createDeployment.
/**
* Define the deployment
*
* @return The deployment archive
*/
@Deployment(name = "basic-after.rar")
public static ResourceAdapterArchive createDeployment() throws Exception {
ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName);
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "multiple.jar");
ja.addPackage(MultipleConnectionFactory1.class.getPackage());
raa.addAsLibrary(ja);
raa.addAsManifestResource(AfterResourceCreationDeploymentTestCase.class.getPackage(), "ra.xml", "ra.xml");
return raa;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class DDBasedEJBTestCase method getDeployment.
@Deployment
public static JavaArchive getDeployment() throws Exception {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, JAR_NAME);
jar.addPackage(DDBasedEJBTestCase.class.getPackage());
jar.addPackage(DDBasedSLSB.class.getPackage());
jar.addAsManifestResource(DDBasedEJBTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
jar.addAsManifestResource(DDBasedEJBTestCase.class.getPackage(), "MANIFEST.MF", "MANIFEST.MF");
return jar;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class RarTestCase method getDeployment.
@Deployment
public static Archive<?> getDeployment() {
JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "rar-example.rar");
archive.addPackage(RarTestCase.class.getPackage());
archive.addAsManifestResource(RarTestCase.class.getPackage(), "ironjacamar.xml", "ironjacamar.xml");
return archive;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class SarTestCase method createDeployment.
@Deployment(testable = false)
public static JavaArchive createDeployment() throws Exception {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "sar-example.sar");
jar.addPackage(SarTestCase.class.getPackage());
jar.addAsManifestResource(SarTestCase.class.getPackage(), "jboss-service.xml", "jboss-service.xml");
return jar;
}
use of org.jboss.arquillian.container.test.api.Deployment in project wildfly by wildfly.
the class ServiceLoaderTestCase method getDeployment.
@Deployment
public static Archive<?> getDeployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "serviceloader-example.jar");
jar.addAsServiceProvider(TestService.class, TestServiceImpl.class);
jar.addPackage(ServiceLoaderTestCase.class.getPackage());
return jar;
}
Aggregations