Skip to content

Instantly share code, notes, and snippets.

@maeste
Created December 10, 2010 14:54
Show Gist options
  • Select an option

  • Save maeste/736291 to your computer and use it in GitHub Desktop.

Select an option

Save maeste/736291 to your computer and use it in GitHub Desktop.
@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