Day to Day Java Java and related Topics

8Apr/100

Integration testing with an in-memory database without hibernate

On previous projects I have been using hibernate as persistence framework, but now the layout is Ibatis with a relational database. Setting up an integration test stack with hibernate is easy, just some configuration of an in-memory database with HSQLDB or H2Database and your good to go. The niftiest about this is the lacking need of a database schema and conversion of fields, types, generators, procedures and so on.

So, whats your choices? using Google as your friend, you will find keywords like DbUnit, HSQLDB, Hibernate, Unitils, Apache Derby, JavaDB, Hibernate, Hibernate, Hibernate....
Whats the best option? I'm not sure myself, but I will give one framework a go, and post about the experiences later.

Unitils with HSQLDB here we go. Btw, Unitils builds on top of DbUnit and integrates easily with JUnit, Spring, EasyMock etc. Just what i need??

Related posts:

  1. Did the in-memory database integration testing work as expected?
Comments (0) Trackbacks (1)

Leave a comment

(required)