*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
 
subject: EJB3Unit Testing Capabilities
 
Similar Threads
ejb3unit
ejb3unit interceptors
EJB3Unit
EJB3Unit
ejb3unit