use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class RemotingLoginModuleTestCase method createDeployment.
/**
* Creates a deployment application for this test.
*
* @return
* @throws IOException
*/
@Deployment
public static JavaArchive createDeployment() throws IOException {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, TEST_NAME + ".jar");
jar.addClasses(HelloBean.class, Hello.class);
jar.addAsManifestResource(Utils.getJBossEjb3XmlAsset(TEST_NAME), "jboss-ejb3.xml");
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class RemotingLoginModuleUseNewClientCertTestCase method createDeployment.
/**
* Creates a deployment application for this test.
*
* @return
* @throws IOException
*/
@Deployment
public static JavaArchive createDeployment() throws IOException {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, TEST_NAME + ".jar");
jar.addClasses(HelloBean.class, Hello.class);
jar.addAsManifestResource(Utils.getJBossEjb3XmlAsset(TEST_NAME), "jboss-ejb3.xml");
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class EjbInjectionTargetWrapTestCase method getDeployment.
@Deployment
public static JavaArchive getDeployment() {
JavaArchive jar = ShrinkWrap.create(JavaArchive.class);
jar.addPackage(EjbInjectionTargetWrapTestCase.class.getPackage());
jar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
jar.addAsServiceProvider(Extension.class, WrappingExtension.class);
return jar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class RemoteEJBTwoClusterTestCase method getNonForwardingDeployment.
private static Archive<?> getNonForwardingDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, RECEIVER_MODULE_NAME + ".jar");
ejbJar.addPackage(CommonStatefulSB.class.getPackage());
ejbJar.addPackage(RemoteStatefulSB.class.getPackage());
ejbJar.addClass(SerialBean.class.getName());
return ejbJar;
}
use of org.jboss.shrinkwrap.api.spec.JavaArchive in project wildfly by wildfly.
the class RemoteEJBTwoClusterTestCase method getNonTxForwardingDeployment.
private static Archive<?> getNonTxForwardingDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, FORWARDER_MODULE_NAME + ".jar");
ejbJar.addPackage(CommonStatefulSB.class.getPackage());
ejbJar.addPackage(RemoteStatefulSB.class.getPackage());
ejbJar.addClass(SerialBean.class.getName());
// the forwarding classes
ejbJar.addClass(AbstractForwardingStatefulSBImpl.class.getName());
ejbJar.addClass(NonTxForwardingStatefulSBImpl.class.getName());
// remote outbound connection configuration
ejbJar.addAsManifestResource(RemoteEJBTwoClusterTestCase.class.getPackage(), "jboss-ejb-client.xml", "jboss-ejb-client.xml");
return ejbJar;
}
Aggregations