What I mean is I want to use a EntityManager that basically just returns what I tell it to return without accessing the database, this to test code given a test scenario without having to access a database.
One such "mock" is to make persist() just do nothing or make it fail ... This would to very usefull when testing certain database inserts that needs a lot of data already in the database without having to populate the database in advance. /Magnus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918334#3918334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918334 ------------------------------------------------------- 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 JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user