-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JUnit Testdata Dbunit hbm2ddl
PostPosted: Mon Jun 23, 2008 5:56 am 
Beginner
Beginner

Joined: Wed Feb 23, 2005 11:32 am
Posts: 25
Location: Austria/Vienna
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....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.