use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class GlobalReferenceTestCase method deploymentEjb2.
@Deployment(name = "ejb2")
public static Archive<?> deploymentEjb2() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, EJB2 + ".jar").addClasses(Session21.class, Session21Bean.class, Session21Home.class, Session30.class, Session30RemoteBusiness.class);
jar.addAsManifestResource(GlobalReferenceTestCase.class.getPackage(), "jboss-ejb3-global.xml", "jboss.xml");
jar.addAsManifestResource(GlobalReferenceTestCase.class.getPackage(), "ejb-jar-global.xml", "ejb-jar.xml");
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class EjbRefLookupTestCase method deployEar.
@Deployment(order = 0, name = EAR_DEPLOYMENT)
public static Archive<?> deployEar() {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_DEPLOYMENT + ".ear");
JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ejb.jar").addClasses(RemoteInterface.class, RemoteInterfaceBean.class);
ear.addAsModule(ejbJar);
return ear;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class EjbRefInjectionTargetTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, ARCHIVE_NAME);
jar.addPackage(EjbRefInjectionTargetTestCase.class.getPackage());
jar.addAsManifestResource(EjbRefInjectionTargetTestCase.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 InvocationContextTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "invocation-context.jar");
jar.addPackage(InvocationContextTestCase.class.getPackage());
jar.addAsManifestResource(InvocationContextTestCase.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 PreDestroyInterceptorTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "testpredestroy.jar");
jar.addPackage(PreDestroyInterceptorTestCase.class.getPackage());
jar.addAsManifestResource(PreDestroyInterceptorTestCase.class.getPackage(), "ejb-jar.xml", "ejb-jar.xml");
return jar;
}
Aggregations