Discussions

Blogs: Java EE 6 : Testing JPA entities

  1. Java EE 6 : Testing JPA entities (2 messages)

    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

    Threaded Messages (2)

  2. Than you very much.[ Go to top ]

    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
  3. JPA-Unit[ Go to top ]

    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.