JBoss Community Archive (Read Only)

Arquillian Old

Descriptor deployment

We have previously seen Arquillian deploy 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 a 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() {}

public void testDataBase() {}
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 12:18:57 UTC, last content change 2011-04-16 15:39:37 UTC.