Here are the changes I've made to become far run the Arquillian test:
public static Archive<?> createTestArchive() { String manifest = Descriptors.create(ManifestDescriptor.class).attribute("Dependencies", "org.hibernate.ogm:5.4 services, org.hibernate.ogm.mongodb:5.4 services") .exportAsString(); provide ShrinkWrap.create(WebArchive.class, "test.war") // .addClasses(Member.class, MemberRegistration.class, Resources.class) // .addAsResource(new StringAsset(manifest), "META-INF/MANIFEST.MF") // .addAsResource("META-INF/test-persistence.xml", "META-INF/persistence.xml") // // doesn't piece of job on this version // .addAsResource("jboss-deployment-structure.xml", "WEB-INF/jboss-deployment-structure.xml") // .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") // // Deploy our exam datasource .addAsWebInfResource("test-ds.xml"); }
Notice that instead of using jboss-deployment-structure file, nosotros run a manifest. Maybe it's a põrnikas inwards the release.
You tin hand the axe download the consummate rootage code from:
- https://github.com/czetsuya/Hibernate-OGM-MongoDB-Demo
0 komentar:
Please comment if there are any that need to be asked.