Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggest a JPA Unit test framework

How to unit test JPA code? is there any way to generate Unit Test case itself?

Note: I am lazy and new to Unit Test code.

like image 469
Mohan Narayanaswamy Avatar asked Jan 17 '09 01:01

Mohan Narayanaswamy


2 Answers

Check this out, Unitils. Here is a related discussion, with some example codes.

Here is the example, showing DBUnit, Spring and OpenJPA together. You might not using all, but this can take you somewhere if you want to go with DBUnit, I believe.

like image 188
Adeel Ansari Avatar answered Nov 14 '22 21:11

Adeel Ansari


I'm in the middle of trying out OpenEJB (http://openejb.apache.org/) for my ongoing project. It's an embeddable container with support for EJB 3.0 (and partially 3.1). My first impression of it is fairly good.

like image 29
Kimble Avatar answered Nov 14 '22 20:11

Kimble