JBoss Community Archive (Read Only)

Arquillian

Descriptor deployment

We have previously seen Arquillian deploys ShrinkWrap Archives, but some times you need to deploy other items like a JMS Queue or a DataSource for your test to run. This can be done by using a ShrinkWrap sub project called ShrinkWrap Descriptors. Just like you would deploy an Archive you can deploy a Descriptor.

@Deployment(order = 1)
public static Descriptor createDep1()
{
  return Descriptors.create(DataSourceDescriptor.class);
}

@Deployment(order = 2)
public static WebArchive createDep2() {}

@Test
public void testDataBase() {}
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 09:40:13 UTC, last content change 2012-11-09 14:59:37 UTC.