Search in sources :

Example 46 with ResourceAdapterArchive

use of org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive in project wildfly by wildfly.

the class InflowTestCase method createDeployment.

/**
     * Define the deployment
     *
     * @return The deployment archive
     */
@Deployment
public static ResourceAdapterArchive createDeployment() throws Exception {
    String deploymentName = "inflow.rar";
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName);
    JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "multiple.jar");
    ja.addPackage(PureInflowResourceAdapter.class.getPackage()).addClasses(InflowTestCase.class, MgmtOperationException.class, XMLElementReader.class, XMLElementWriter.class);
    ja.addPackage(AbstractMgmtTestBase.class.getPackage());
    raa.addAsLibrary(ja);
    raa.addAsManifestResource(InflowTestCase.class.getPackage(), "ra.xml", "ra.xml").addAsManifestResource(InflowTestCase.class.getPackage(), "ironjacamar.xml", "ironjacamar.xml").addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client,org.jboss.dmr,org.jboss.as.cli,javax.inject.api,org.jboss.as.connector\n"), "MANIFEST.MF");
    return raa;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) AbstractMgmtTestBase(org.jboss.as.test.integration.management.base.AbstractMgmtTestBase) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 47 with ResourceAdapterArchive

use of org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive in project wildfly by wildfly.

the class PureTestCase method createDeployment.

/**
     * Define the deployment
     *
     * @return The deployment archive
     */
@Deployment
public static ResourceAdapterArchive createDeployment() throws Exception {
    String deploymentName = "pure.rar";
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName);
    JavaArchive javaArchive = ShrinkWrap.create(JavaArchive.class, "multiple.jar");
    javaArchive.addClasses(PureTestCase.class, MgmtOperationException.class, XMLElementReader.class, XMLElementWriter.class);
    javaArchive.addPackage(PureInflowResourceAdapter.class.getPackage());
    javaArchive.addPackage(AbstractMgmtTestBase.class.getPackage());
    raa.addAsLibrary(javaArchive);
    raa.addAsManifestResource(PureTestCase.class.getPackage(), "ra.xml", "ra.xml").addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client,org.jboss.dmr,org.jboss.as.cli,javax.inject.api,org.jboss.as.connector\n"), "MANIFEST.MF");
    return raa;
}
Also used : StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) AbstractMgmtTestBase(org.jboss.as.test.integration.management.base.AbstractMgmtTestBase) PureInflowResourceAdapter(org.jboss.as.test.smoke.deployment.rar.inflow.PureInflowResourceAdapter) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 48 with ResourceAdapterArchive

use of org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive in project wildfly by wildfly.

the class RaTestConnectionTestCase method createDeployment.

/**
     * Define the deployment
     *
     * @return The deployment archive
     */
@Deployment
public static ResourceAdapterArchive createDeployment() throws Exception {
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName);
    JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "multiple.jar");
    ja.addPackage(MultipleConnectionFactory1.class.getPackage());
    raa.addAsLibrary(ja);
    raa.addAsManifestResource(RaTestConnectionTestCase.class.getPackage(), "ra.xml", "ra.xml");
    return raa;
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleConnectionFactory1(org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 49 with ResourceAdapterArchive

use of org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive in project wildfly by wildfly.

the class ReDeploymentTestCase method createDeployment.

/**
     * Define the deployment
     *
     * @return The deployment archive
     */
@Deployment(name = "re-deployment.rar", managed = false)
public static ResourceAdapterArchive createDeployment() throws Exception {
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, deploymentName);
    JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "multiple.jar");
    ja.addPackage(MultipleConnectionFactory1.class.getPackage());
    raa.addAsLibrary(ja);
    raa.addAsManifestResource(ReDeploymentTestCase.class.getPackage(), "ra.xml", "ra.xml");
    return raa;
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleConnectionFactory1(org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 50 with ResourceAdapterArchive

use of org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive in project wildfly by wildfly.

the class MDBRAScopeCdiIntegrationTestCase method createEAR.

@Deployment(name = deploymentName, order = 1)
public static EnterpriseArchive createEAR() throws Exception {
    ResourceAdapterArchive raa = createRAR();
    JavaArchive ejbJar = ShrinkWrap.create(JavaArchive.class, "xxx-ejbs.jar");
    ejbJar.addClasses(/* MDBRAScopeCdiIntegrationTestCase.class, */
    CdiIntegrationMDB.class, RequestScopedCDIBean.class, MDBProxy.class, MDBProxyBean.class, JMSMessagingUtil.class, JmsQueueSetup.class).addPackage(JMSOperations.class.getPackage());
    ejbJar.addAsManifestResource(new StringAsset("Dependencies: org.jboss.as.controller-client, org.jboss.as.controller, org.jboss.dmr \n"), "MANIFEST.MF");
    ejbJar.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");
    final EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, deploymentName);
    ear.addAsModule(raa);
    ear.addAsModule(ejbJar);
    return ear;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) JMSOperations(org.jboss.as.test.integration.common.jms.JMSOperations) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) JMSMessagingUtil(org.jboss.as.test.integration.ejb.mdb.JMSMessagingUtil) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)59 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)57 Deployment (org.jboss.arquillian.container.test.api.Deployment)48 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)38 AbstractMgmtTestBase (org.jboss.as.test.integration.management.base.AbstractMgmtTestBase)23 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)15 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)7 ValidConnectionFactory (org.jboss.as.test.integration.jca.beanvalidation.ra.ValidConnectionFactory)4 MultipleConnectionFactory1 (org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1)4 ApplicationDescriptor (org.jboss.shrinkwrap.descriptor.api.application6.ApplicationDescriptor)4 WebAppDescriptor (org.jboss.shrinkwrap.descriptor.api.webapp30.WebAppDescriptor)4 File (java.io.File)3 LazyConnectionFactory (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyConnectionFactory)3 LazyConnectionImpl (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyConnectionImpl)3 LazyLocalTransaction (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyLocalTransaction)3 LazyManagedConnection (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyManagedConnection)3 LazyResourceAdapter (org.jboss.as.test.integration.jca.lazyconnectionmanager.rar.LazyResourceAdapter)3 MultipleAdminObject1 (org.jboss.as.test.integration.jca.rar.MultipleAdminObject1)3 MultipleConnectionFactory1 (org.jboss.as.test.integration.jca.rar.MultipleConnectionFactory1)3 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)2