File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes EJB3Unit Testing Capabilities Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "EJB3Unit Testing Capabilities" Watch "EJB3Unit Testing Capabilities" New topic
Author

EJB3Unit Testing Capabilities

Nuwan Bnadara
Greenhorn

Joined: Mar 05, 2009
Posts: 4
Can some one tell me is it possible to execute em.persist() and em.merge() methods through Ejb3Unit.
Marcelo Zambiasi
Greenhorn

Joined: Feb 27, 2009
Posts: 8
Yes... it's possible, but you must have an active transaction to change the "database" of EJB3Unit. Something like that:
Nuwan Bnadara
Greenhorn

Joined: Mar 05, 2009
Posts: 4
Marcelo Zambiasi wrote:Yes... it's possible, but you must have an active transaction to change the "database" of EJB3Unit. Something like that:


Hi,

Thank you very much. I've managed to do lot with EJB3Unit.

NUwan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3Unit Testing Capabilities