Search in sources :

Example 1 with MultipleAdminObject1

use of org.jboss.as.test.integration.jca.rar.MultipleAdminObject1 in project wildfly by wildfly.

the class WarServletDeploymentTestCase method getRar.

@Deployment(name = "rar", order = 1)
public static Archive<?> getRar() {
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, rarDeploymentName);
    JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "lib.jar");
    ja.addPackage(MultipleAdminObject1.class.getPackage());
    raa.addAsLibrary(ja);
    raa.addAsManifestResource(WarServletDeploymentTestCase.class.getPackage(), "ra.xml", "ra.xml");
    return raa;
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleAdminObject1(org.jboss.as.test.integration.jca.rar.MultipleAdminObject1) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Example 2 with MultipleAdminObject1

use of org.jboss.as.test.integration.jca.rar.MultipleAdminObject1 in project wildfly by wildfly.

the class EjbDeploymentTestCase method getRar.

public static Archive<?> getRar() {
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, insideRarDeploymentName);
    JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "lib.jar");
    ja.addPackage(MultipleAdminObject1.class.getPackage());
    raa.addAsLibrary(ja);
    raa.addAsManifestResource(EjbDeploymentTestCase.class.getPackage(), "ra.xml", "ra.xml");
    return raa;
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleAdminObject1(org.jboss.as.test.integration.jca.rar.MultipleAdminObject1) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive)

Example 3 with MultipleAdminObject1

use of org.jboss.as.test.integration.jca.rar.MultipleAdminObject1 in project wildfly by wildfly.

the class RarInsideEarReDeploymentTestCase method testConfiguration.

/**
     * Test configuration
     *
     * @throws Throwable Thrown if case of an error
     */
@Test
public void testConfiguration() throws Throwable {
    try {
        deployer.deploy(deploymentName);
        setup();
        deployer.undeploy(deploymentName);
        deployer.deploy(deploymentName);
        MultipleAdminObject1 adminObject1 = (MultipleAdminObject1) context.lookup("redeployed/Name3");
        assertNotNull("AO1 not found", adminObject1);
    } finally {
        deployer.undeploy(deploymentName);
        remove(address);
    }
}
Also used : MultipleAdminObject1(org.jboss.as.test.integration.jca.rar.MultipleAdminObject1) Test(org.junit.Test)

Example 4 with MultipleAdminObject1

use of org.jboss.as.test.integration.jca.rar.MultipleAdminObject1 in project wildfly by wildfly.

the class EjbDeploymentTestCase method deploytRar.

@Deployment(name = "rar", order = 1)
public static Archive<?> deploytRar() {
    ResourceAdapterArchive raa = ShrinkWrap.create(ResourceAdapterArchive.class, rarDeploymentName);
    JavaArchive ja = ShrinkWrap.create(JavaArchive.class, "lib.jar");
    ja.addPackage(MultipleAdminObject1.class.getPackage());
    raa.addAsLibrary(ja);
    raa.addAsManifestResource(EjbDeploymentTestCase.class.getPackage(), "ra.xml", "ra.xml");
    return raa;
}
Also used : ResourceAdapterArchive(org.jboss.shrinkwrap.api.spec.ResourceAdapterArchive) MultipleAdminObject1(org.jboss.as.test.integration.jca.rar.MultipleAdminObject1) JavaArchive(org.jboss.shrinkwrap.api.spec.JavaArchive) OperateOnDeployment(org.jboss.arquillian.container.test.api.OperateOnDeployment) Deployment(org.jboss.arquillian.container.test.api.Deployment)

Aggregations

MultipleAdminObject1 (org.jboss.as.test.integration.jca.rar.MultipleAdminObject1)4 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 OperateOnDeployment (org.jboss.arquillian.container.test.api.OperateOnDeployment)2 Test (org.junit.Test)1