and so on. I realized all the tests on the data-model module using HSQLDB (with JPA 2.0 + Hibernate 3.6.7) and now i've started writing tests for the service module. It's made up of different services that use DAO/repository classes so my question is, should I continue using the test database configuration or just mock the data-model classes?
I'm using maven 3 as build tool and I've added the src/test/resources folder of data-model as testResource in the service's pom.
Thanks for the reply. The Unit Tests on data-model are ok (I already use HSQLDB and the approach described in your link), my question is about testing the service layer. Classes in service layer use repositories and daos of data-model layer. Do I have to mock them or to use the test configuration of data-model (so HSQLDB)? If the second, i have to use the src/test/resources folder as described in my first post?
Joined: Dec 08, 2010
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com