anonymous wrote : | But I really think it is very wierd to mock the database in integration tests. It is much, much better to actually test that the data is getting all the way to the db. |
I have to disagree, just because you want to test the interaction between two objects it does not necessarily mean that you (also) want to test the interaction with the database. I guess that I can solve this quite nicely by running the tests where I don't want database interaction outside the mc by injecting my own em and also run another set of test inside the mc for database integration testing. It would be nice if SeamTest could help with this ;-) but I can manage on my own ... maybe I'm the only one that want to do this ... Thanks, /Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918436#3918436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918436 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
