Home

 

JUnit testing of JPA entities

According the Java Persistence API (JPA) specification, JPA entities are not bound to any Java EE container. They can run in a Java SE environment and therefore unit testing of JPA entities is easier than it was to test EJB 2.x entity beans.

ibm.com/redbooks