use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class InterceptorOrderUnitTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "interceptor-descriptor-test.jar");
jar.addPackage(InterceptorOrderUnitTestCase.class.getPackage());
jar.addAsManifestResource(InterceptorOrderUnitTestCase.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 AsyncFutureTestCase method createCommonJar.
private static JavaArchive createCommonJar() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, DEPLOYMENT_NAME_COMMON_JAR);
jar.addClasses(ReturnObject.class, AsyncRemote.class);
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class RemoteInvocationByValueTestCase method deploy.
@Deployment
public static Archive<?> deploy() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, ARCHIVE_NAME + ".jar");
jar.addPackage(RemoteInvocationByValueTestCase.class.getPackage());
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class CrossDeploymentRemoteInvocationTestCase method callee.
@Deployment(name = "callee", testable = false)
public static Archive<?> callee() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "callee.jar");
jar.addClasses(StatelessRemoteBean.class, RemoteInterface.class);
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class EJBClientAPIUsageTestCase method createDeployment.
/**
* Creates an EJB deployment
*
* @return
*/
@Deployment
public static Archive<?> createDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_NAME + ".ear");
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, MODULE_NAME + ".jar");
jar.addPackage(EJBClientAPIUsageTestCase.class.getPackage());
jar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
ear.addAsModule(jar);
return ear;
}
Aggregations