Search in sources :

Example 61 with EnterpriseArchive

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;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 62 with EnterpriseArchive

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;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) JMSOperations(org.jboss.as.test.integration.common.jms.JMSOperations) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 63 with EnterpriseArchive

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;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment)

Example 64 with EnterpriseArchive

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;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment)

Example 65 with EnterpriseArchive

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;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)164 Deployment (org.jboss.arquillian.container.test.api.Deployment)143 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)139 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)85 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)58 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)21 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)15 BeforeClass (org.junit.BeforeClass)10 File (java.io.File)8 ModelNode (org.jboss.dmr.ModelNode)8 OperationBuilder (org.jboss.as.controller.client.OperationBuilder)7 HttpRequest (org.jboss.as.test.integration.common.HttpRequest)6 AbstractMgmtTestBase (org.jboss.as.test.integration.management.base.AbstractMgmtTestBase)4 ByteArrayAsset (org.jboss.shrinkwrap.api.asset.ByteArrayAsset)4 ApplicationDescriptor (org.jboss.shrinkwrap.descriptor.api.application6.ApplicationDescriptor)4 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)4 Properties (java.util.Properties)3 PropertyPermission (java.util.PropertyPermission)3 ZipExporter (org.jboss.shrinkwrap.api.exporter.ZipExporter)3 ZipExporterImpl (org.jboss.shrinkwrap.impl.base.exporter.zip.ZipExporterImpl)3