Search in sources :

Example 1 with MultipleConnectionFactory1

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;
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleConnectionFactory1(org.jboss.as.test.integration.jca.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.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;
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleConnectionFactory1(org.jboss.as.test.integration.jca.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.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());
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleConnectionFactory1(org.jboss.as.test.integration.jca.rar.MultipleConnectionFactory1) ExplodedExporter(org.jboss.shrinkwrap.api.exporter.ExplodedExporter) File(java.io.File) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive)

Aggregations

MultipleConnectionFactory1 (org.jboss.as.test.integration.jca.rar.MultipleConnectionFactory1)3 JavaArchive (org.jboss.shrinkwrap.api.spec.JavaArchive)3 ResourceAdapterArchive (org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive)3 Deployment (org.jboss.arquillian.container.test.api.Deployment)2 File (java.io.File)1 ExplodedExporter (org.jboss.shrinkwrap.api.exporter.ExplodedExporter)1