You don't have to wait for the final release of Java EE 6 to become available to try it out, many of the technologies slated to form part of the standard are already available. This first in a series of posts by Antonio Goncalves walks you through the process of testing JPA entities using the JPA 2.0 reference implementation(Eclipse Link), using the databases MySQL and Derby, as well as Maven, JUnit and DbUnit. Read Antonio's post on 'Testing Java EE 6 components : JPA 2.0 With EclipseLink' http://www.antoniogoncalves.org/xwiki/bin/view/Article/TestingJPA
- Posted by: Daniel Rubio
- Posted on: October 12 2008 03:37 EDT
Thank you very much. This first in a series of posts by Antonio Goncalves walks you through the process of testing jpa entities using the jpa 2.0 reference implementation.Thanks. ilahi
Try using JPA-Unit - tool for testing your JPA code. It
- managas transaction,
- creates db connections,
- entitymanager based on given persistence unit name,
- fills db with test-data.
By default it requires zero configuration so its very easyto use.