tdd « Test « JPA Q&A





1. Unit Tests for JPA/Persistence in General    stackoverflow.com

How/would you test super-simple methods that are built on a persistence engine. I'm going to use JPA but any persistence mechanism I'm sure has its equivelents. For example...

@Entity
public class Category {

  ...

2. Test-Driven Development Problem    stackoverflow.com

I'm newbie to Java EE 6 and i'm trying to develop very simple JAX-RS application. RESTfull web service working fine. However when I ran my test application, I got the following. ...

3. How do I efficiently test SQL/JPQL/HSQL?    stackoverflow.com

It is often said when unit testing to dont test the database as that is an integration test (see point 4). However, SQL/JPQL/HSQL encapsulate data store specific logic which is often ...