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