@Deployment(order = 1) public static Descriptor createDep1() { return Descriptors.create(DataSourceDescriptor.class); } @Deployment(order = 2) public static WebArchive createDep2() {} @Test public void testDataBase() {}
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() {} @Test public void testDataBase() {}