@ArquillianResource
private URL url;
@Deployment(testable = false)
public static WebArchive getArchive() {
PersistenceDescriptor persistenceDescriptor = Descriptors.create(PersistenceDescriptor.class)
.createPersistenceUnit()
.name("test-pu")
.transactionType("JTA")
.clazz(PersistenceDescriptor.class.getName())
.jtaDataSource("test-ds")
.up();
Asset persistenceAsset = new StringAsset(persistenceDescriptor.exportAsString());
return base("jsf-jpa-test.war").addAsWebInfResource(persistenceAsset, "persistence.xml")
.addPackage(JPAInjectionTest.class.getPackage())
.addAsWebResource(new ClassLoaderAsset(
JPAInjectionTest.class.getPackage().getName().replace('.', '/').concat("/").concat("dummy.xhtml")), "dummy.xhtml");