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;
}
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;
}
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;
}
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;
}
Aggregations