use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class InvokedBusinessInterfaceUnitTestCase method deployment.
@Deployment
public static Archive<?> deployment() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, ARCHIVE_NAME + ".jar").addPackage(InvokedBusinessInterfaceUnitTestCase.class.getPackage());
jar.addAsManifestResource(InvokedBusinessInterfaceUnitTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class JBossDeploymentStructure11ParsingTestCase method createDeployment.
@Deployment
public static Archive createDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
ejbJar.addPackage(JBossDeploymentStructure11ParsingTestCase.class.getPackage());
ejbJar.addAsManifestResource(JBossDeploymentStructure11ParsingTestCase.class.getPackage(), "jboss-deployment-structure_1_1.xml", "jboss-deployment-structure.xml");
return ejbJar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class SubDirectoryModuleDeploymentTestCase method createDeployment.
@Deployment
public static Archive<?> createDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "subdirectory.ear");
final JavaArchive jarOne = ShrinkWrap.create(JavaArchive.class, "ejb.jar");
jarOne.addClass(MessageBean.class);
ear.addAsModule(new ArchiveAsset(jarOne, ZipExporter.class), "subdir/ejb/ejb.jar");
final WebArchive war = ShrinkWrap.create(WebArchive.class, "web.war");
war.addClass(MessageServlet.class);
ear.addAsModule(new ArchiveAsset(war, ZipExporter.class), "subdir/web/web.war");
return ear;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class SharedBeanInEarsUnitTestCase method deployB.
@Deployment(name = "b", testable = false, managed = true)
public static Archive<?> deployB() {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_B + ".ear");
JavaArchive jarB = ShrinkWrap.create(JavaArchive.class, MOD_B + ".jar");
jarB.addClasses(BEJB.class, BEJBBean.class);
JavaArchive jarBshared = ShrinkWrap.create(JavaArchive.class, MOD_B_SHARED + ".jar");
jarBshared.addClasses(Shared.class, SharedBean.class);
jarBshared.addAsManifestResource(SharedBeanInEarsUnitTestCase.class.getPackage(), "ejb-jar-b.xml", "ejb-jar.xml");
ear.addAsModule(jarB);
ear.addAsModule(jarBshared);
ear.addAsManifestResource(SharedBeanInEarsUnitTestCase.class.getPackage(), "application-b.xml", "application.xml");
return ear;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class InfinispanInjectionTestCase method deployment.
@Deployment
public static Archive<?> deployment() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "infinispan-injection.jar");
jar.addClasses(InfinispanManagedBean.class, InfinispanInjectionTestCase.class);
jar.addAsResource(new StringAsset("Manifest-Version: 1.0\nDependencies: org.infinispan export\n"), "META-INF/MANIFEST.MF");
return jar;
}
Aggregations