users@glassfish.java.net

Re: [EclipseLink] Clean JPA database for EJB unit tests

From: <glassfish_at_javadesktop.org>
Date: Wed, 07 Apr 2010 02:24:17 PDT

Though I think I have tested it before and works fine, as an alternative, you can drop all tables when your unit test starts. Do it by writing a simple JPQL query and executing the query at @BeforeClass method in your unit test class.
Youness
[Message sent by forum member 'youness_teimoury']

http://forums.java.net/jive/thread.jspa?messageID=395646