I am optimizing our junit infrastructure.
For dedicted database J-Unit Tests we prepare the database with a
clean new set of testdata. Currently we do this by using DbUnit. This works fine basically.
disadvantages of this approach are:
What we do not like is working with the database names directly, as Dbunit does. the names of the columns or tables is not visible generally in the junit test or application.
The intention of hibernate is to abstract a bit from the database layout and concentrate on a object domain model. This therefore means we would like to describe our testdata in the structure of the domain model POJO's.
simply we can not instantiate a POJO from an DBunit file (easily). which leads to the fact that we have 2 formats describing a Data-Object (e.g. a Account) one as dbunit to fill up the db the other one as beeing used to create an account pojo directly.
are there any ideas to that problem ?
what i am searching for is something like a hibernate-Dbunit....