Created
December 10, 2010 14:54
-
-
Save maeste/736291 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @RunWith(Arquillian.class) | |
| public class RaXmlTestCase extends AbstractDeployerTest | |
| { | |
| //-------------------------------------------------------------------------------------|| | |
| //---------------------- GIVEN --------------------------------------------------------|| | |
| //-------------------------------------------------------------------------------------|| | |
| /** | |
| * Define the deployment | |
| * @return The deployment archive | |
| * @throws Exception in case of errors | |
| */ | |
| @Deployment | |
| public static ResourceAdapterArchive createDeployment() throws Exception | |
| { | |
| String archiveName = "ra16out.rar"; | |
| String packageName = "org.jboss.jca.test.deployers.spec.rars.ra16out"; | |
| ResourceAdapterArchive raa = buidShrinkwrapRa(archiveName, packageName); | |
| raa.addManifestResource(archiveName + "/META-INF/ra.xml", "ra.xml"); | |
| raa.addManifestResource("ra16out-ra.xml", "ra16out-ra.xml"); | |
| return raa; | |
| } | |
| //-------------------------------------------------------------------------------------|| | |
| //---------------------- WHEN --------------------------------------------------------|| | |
| //-------------------------------------------------------------------------------------|| | |
| @Resource(mappedName = "java:/eis/ra16out-raxml") | |
| private ConnectionFactory connectionFactory; | |
| //-------------------------------------------------------------------------------------|| | |
| //---------------------- THEN --------------------------------------------------------|| | |
| //-------------------------------------------------------------------------------------|| | |
| /** | |
| * Basic | |
| * @exception Throwable Thrown if case of an error | |
| */ | |
| @Test | |
| public void testBasic() throws Throwable | |
| { | |
| getContextDeployer().deploy(sometthing.xml); | |
| assertNotNull(connectionFactory); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment