[jboss-user] [JBoss Seam] - Test database with Seam2, Maven and TestNG?

andrew.rw.robinson do-not-reply at jboss.com
Tue Dec 18 15:43:28 EST 2007


I have finally got the maven unit tests through testng running, but they are failing. 

I want to have two databases, one for tomcat deployment and one for my unit tests. The problem is that the seam configuration is picking up my "src/main/resources/META-INF/orm.xml" and "src/main/resources/META-INF/persistence.xml". 

As a result, the tests are being run against the wrong database. Anyone have any bright ideas on how to isolate the unit tests better?

Thanks,
Andrew

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113957#4113957

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113957



More information about the jboss-user mailing list