use of org.jboss.as.test.integration.jca.rar.MultipleConnectionFactory1 in project wildfly by wildfly.
the class RaWithElytronAuthContextTestCase method deploymentSingleton.
@Deployment
public static Archive<?> deploymentSingleton() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "single.jar").addClass(RaWithElytronAuthContextTestCase.class).addPackage(MultipleConnectionFactory1.class.getPackage());
jar.addClasses(AbstractElytronSetupTask.class, ServerSetupTask.class);
final ResourceAdapterArchive rar = ShrinkWrap.create(ResourceAdapterArchive.class, "test.rar").addAsLibrary(jar).addAsManifestResource(RaWithElytronAuthContextTestCase.class.getPackage(), "ra.xml", "ra.xml").addAsManifestResource(RaWithElytronAuthContextTestCase.class.getPackage(), "ironjacamar-elytron.xml", "ironjacamar.xml");
return rar;
}
use of org.jboss.as.test.integration.jca.rar.MultipleConnectionFactory1 in project wildfly by wildfly.
the class RaWithSecurityDomainTestCase method deploymentSingleton.
@Deployment
public static Archive<?> deploymentSingleton() {
final JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "single.jar").addClass(RaWithSecurityDomainTestCase.class).addPackage(MultipleConnectionFactory1.class.getPackage());
jar.addClasses(AbstractLoginModuleSecurityDomainTestCaseSetup.class, AbstractSecurityDomainSetup.class);
final ResourceAdapterArchive rar = ShrinkWrap.create(ResourceAdapterArchive.class, "test.rar").addAsLibrary(jar).addAsManifestResource(RaWithSecurityDomainTestCase.class.getPackage(), "ra.xml", "ra.xml").addAsManifestResource(RaWithSecurityDomainTestCase.class.getPackage(), "ironjacamar.xml", "ironjacamar.xml");
return rar;
}
use of org.jboss.as.test.integration.jca.rar.MultipleConnectionFactory1 in project wildfly by wildfly.
the class AbstractModuleDeploymentTestCaseSetup method fillModuleWithJar.
/**
* Creates module structure for uncompressed RA archive.
* RA classes are packed in .jar archive
*
* @throws Exception
*/
protected void fillModuleWithJar(String raFile) throws Exception {
ResourceAdapterArchive rar = ShrinkWrap.create(ResourceAdapterArchive.class);
JavaArchive jar = ShrinkWrap.create(JavaArchive.class, "ra16out.jar");
jar.addPackage(MultipleConnectionFactory1.class.getPackage());
rar.addAsManifestResource(PureJarTestCase.class.getPackage(), raFile, "ra.xml");
rar.as(ExplodedExporter.class).exportExploded(testModuleRoot, getSlot());
copyFile(new File(slot, "ra16out.jar"), jar.as(ZipExporter.class).exportAsInputStream());
}
Aggregations