News for hackers. Stuff that matters.

JPA-based JUnit Test Best Practices

This is a bit of an odd question, but it has been bothering me for a few months now. I have built a JPA-based web application using Wicket + Hibernate (built with Maven), and want to test the DAO layer directly. I created a specific src/test/resources/META-INF/persistence.xml file that I used for testing, but have been running into conflicts with WTP and the like. To get around these issues, I created a separate test project where the unit tests live. Is there a better way to manage unit tests for a JPA project without having duels between persistence files?
( 2 comments | 2 points | on HN )
Re:JPA-based JUnit Test Best Practices by noss on Tuesday August 04, 2009 @05:57PM (#742293)
How about asking at stackoverflow.com?
Re:JPA-based JUnit Test Best Practices by mlaccetti on Wednesday August 05, 2009 @12:59PM (#743751)
Yeah, that's the next stop. :) Thanks.