Search in sources :

Example 1 with MultipleConnectionFactory1

use of org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1 in project wildfly by wildfly.

the class AfterResourceCreationDeploymentTestCase method createDeployment.

/**
     * Define the deployment
     *
     * @return The deployment archive
     */
@Deployment(name = "basic-after.rar")
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(AfterResourceCreationDeploymentTestCase.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 2 with MultipleConnectionFactory1

use of org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1 in project wildfly by wildfly.

the class EarDeploymentTestCase method createDeployment.

/**
     * Define the deployment
     *
     * @return The deployment archive
     */
@Deployment
public static EnterpriseArchive createDeployment() throws Exception {
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, subdeploymentName);
    JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "multiple.jar");
    ja.addPackage(MultipleConnectionFactory1.class.getPackage());
    raa.addAsManifestResource(EarDeploymentTestCase.class.getPackage(), "ironjacamar.xml", "ironjacamar.xml").addAsManifestResource(EarDeploymentTestCase.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");
    WebArchive wa = ShrinkWrap.create(WebArchive.class, "servlet.war");
    wa.addClasses(RaServlet.class);
    EnterpriseArchive ea = ShrinkWrap.create(EnterpriseArchive.class, deploymentName);
    ea.addAsModule(raa).addAsModule(wa).addAsLibrary(ja);
    return ea;
}
Also used : EnterpriseArchive(org.jboss.shrinkwrap.api.spec.EnterpriseArchive) StringAsset(org.jboss.shrinkwrap.api.asset.StringAsset) WebArchive(org.jboss.shrinkwrap.api.spec.WebArchive) 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 3 with MultipleConnectionFactory1

use of org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1 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 4 with MultipleConnectionFactory1

use of org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1 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)

Aggregations

Deployment (org.jboss.arquillian.container.test.api.Deployment)4 MultipleConnectionFactory1 (org.jboss.as.test.smoke.deployment.rar.MultipleConnectionFactory1)4 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)4 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)4 StringAsset (org.jboss.shrinkwrap.api.asset.StringAsset)1 EnterpriseArchive (org.jboss.shrinkwrap.api.spec.EnterpriseArchive)1 WebArchive (org.jboss.shrinkwrap.api.spec.WebArchive)1