use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project wildfly by wildfly.
the class DefaultJMSConnectionFactoryEJBTestCase method getDeployment.
@Deployment
public static EnterpriseArchive getDeployment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, DefaultJMSConnectionFactoryEJBTestCase.class.getSimpleName() + ".ear");
JavaArchive module = ShrinkWrap.create(JavaArchive.class, "module.jar");
module.addClasses(DefaultJMSConnectionFactoryEJBTestCase.class, DefaultJMSConnectionFactoryTestEJB.class);
ear.addAsModule(module);
return ear;
}
use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project wildfly by wildfly.
the class ObjectMessageTestCase method getDeployment.
/**
* .ear
* |
* |--- ejb.jar
* | |--- <classes including the MDB>
* |
* |--- lib
* | |
* | |--- util.jar
* | | |
* | | |--- <classes including the Class whose object is wrapped in an ObjectMessage>
*
* @return
*/
@Deployment
public static Archive getDeployment() {
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "ejb.jar");
ejbJar.addClasses(MDBAcceptingObjectMessageOfArrayType.class, JMSMessagingUtil.class, ObjectMessageTestCase.class, MDBAcceptingObjectMessage.class);
final JavaArchive libJar = ShrinkWrap.create(JavaArchive.class, "util.jar");
libJar.addClasses(SimpleMessageInEarLibJar.class);
libJar.addPackage(JMSOperations.class.getPackage());
libJar.addClass(JmsQueueSetup.class);
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, "mdb-objectmessage-test.ear");
ear.addAsModule(ejbJar);
ear.addAsLibraries(libJar);
ear.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.dmr \n"), "MANIFEST.MF");
return ear;
}
use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project wildfly by wildfly.
the class DeploymentPackagedRARelativePathTestCase method createDeplyomentAnnotated.
@Deployment(name = DEPLOYMENT_ANNOTATED)
public static Archive createDeplyomentAnnotated() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_NAME + ".ear");
final JavaArchive rar = ShrinkWrap.create(JavaArchive.class, RAR_NAME + ".rar");
rar.addAsManifestResource(DeploymentPackagedRARelativePathTestCase.class.getPackage(), "ra.xml", "ra.xml");
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, EJB_JAR_NAME + ".jar");
ejbJar.addClasses(NonJMSMDBRelativePath.class, DeploymentPackagedRARelativePathTestCase.class);
final JavaArchive libJar = ShrinkWrap.create(JavaArchive.class, "common-lib.jar");
libJar.addClasses(SimpleActivationSpec.class, SimpleResourceAdapter.class, SimpleMessageListener.class, ResourceAdapterDeploymentTracker.class);
ear.addAsModule(rar);
ear.addAsModule(ejbJar);
ear.addAsLibrary(libJar);
return ear;
}
use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project wildfly by wildfly.
the class DeploymentPackagedRARelativePathTestCase method createDeplyomentWithDeploymentDescriptor.
@Deployment(name = DEPLOYMENT_WITH_DEPLOYMENT_DESCRIPTOR)
public static Archive createDeplyomentWithDeploymentDescriptor() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_NAME + "-deployment-descriptor.ear");
final JavaArchive rar = ShrinkWrap.create(JavaArchive.class, RAR_NAME + ".rar");
rar.addAsManifestResource(DeploymentPackagedRARelativePathTestCase.class.getPackage(), "ra.xml", "ra.xml");
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, EJB_JAR_NAME + ".jar");
ejbJar.addClasses(NonJMSMDBRelativePathWithDeploymentDescriptor.class, DeploymentPackagedRARelativePathTestCase.class);
ejbJar.addAsManifestResource(DeploymentPackagedRARelativePathTestCase.class.getPackage(), "jboss-ejb3-relative-path.xml", "jboss-ejb3.xml");
final JavaArchive libJar = ShrinkWrap.create(JavaArchive.class, "common-lib.jar");
libJar.addClasses(SimpleActivationSpec.class, SimpleResourceAdapter.class, SimpleMessageListener.class, ResourceAdapterDeploymentTracker.class);
ear.addAsModule(rar);
ear.addAsModule(ejbJar);
ear.addAsLibrary(libJar);
return ear;
}
use of org.jboss.shrinkwrap.api.spec.EnterpriseArchive in project wildfly by wildfly.
the class DeploymentPackagedRATestCase method createDeplyoment.
@Deployment
public static Archive createDeplyoment() {
final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, EAR_NAME + ".ear");
final JavaArchive rar = ShrinkWrap.create(JavaArchive.class, RAR_NAME + ".rar");
rar.addAsManifestResource(DeploymentPackagedRATestCase.class.getPackage(), "ra.xml", "ra.xml");
final JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, EJB_JAR_NAME + ".jar");
ejbJar.addClasses(NonJMSMDB.class, DeploymentPackagedRATestCase.class);
final JavaArchive libJar = ShrinkWrap.create(JavaArchive.class, "common-lib.jar");
libJar.addClasses(SimpleActivationSpec.class, SimpleResourceAdapter.class, SimpleMessageListener.class, ResourceAdapterDeploymentTracker.class);
ear.addAsModule(rar);
ear.addAsModule(ejbJar);
ear.addAsLibrary(libJar);
return ear;
}
Aggregations