This content has been marked as final.
Show 1 reply
-
1. Re: Testing Seam applications with shared persistence contexts
karypid Jul 8, 2009 8:06 PM (in response to karypid)Ok, I found the solution after fiddling around some more. Apparently, since there is no EAR in the test project, there is no
application.xml
as well to instruct the container to parse the the prj-entities class folder for peristence units.The solution is to have a persistence.xml file in the prj-test/META-INF folder and declare the presistence unit there. In this case you must also list all entities using <class> tags inside that persistence.xml. This way, the embedded JBoss will pick it up and integration tests will work.