Blog Archives

Emebedded Databases

We have the following choices: H2 Written in Java 1.5 MB jar http://www.h2database.com Handy cheat sheet driver –> org.h2.Driver jdbc url –> jdbc:h2:~/test hibernate.dialect –> org.hibernate.dialect.H2Dialect HSQLDB (HyperSQL) Written in Java 700 KB jar Apache Derby DB (JavaDB) Written in

Tagged with: , ,
Posted in Database, Hibernate, Java

Integration Testing with DB Unit

First checkout DB Unit:  http://dbunit.sourceforge.net/ DbUnit is a JUnit extension targeted at database-driven projects that, among other things, puts your database into a known state between test runs. … DbUnit has the ability to export and import your database data

Tagged with: , , ,
Posted in Database, JUnit, Testing