wood burning stoves 2.0*
The moose likes Testing and the fly likes Is DBUnit an in-memory database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Is DBUnit an in-memory database?" Watch "Is DBUnit an in-memory database?" New topic
Author

Is DBUnit an in-memory database?

NareshAnkuskani Kumar
Ranch Hand

Joined: Sep 15, 2005
Posts: 76
I am new to DBUnit library, please clarify me regarding the below statements at the earliest:

According to my knowledge dbunit is mainly used in setting up the proper test data in the database, before execution of a particular test case/suite.

My Question: Is DBUnit an in-memory database (or) can we setup DBunit as an in memory database?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41104
    
  45
No and no. DBUnit is a test harness for setting up a database to contain particular items of data. It needs a DB to work with. If you want in-memory, you can use HSQLDB as the DB.


Ping & DNS - my free Android networking tools app
NareshAnkuskani Kumar
Ranch Hand

Joined: Sep 15, 2005
Posts: 76
Thanks for the reply
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is DBUnit an in-memory database?
 
Similar Threads
DbUnit + memory HSQLDB
Transactional problems in accessing data using spring mock, dbunit and HSQL
How to pause DBUnit to examine database with Squirrel?
Transactional problems in accessing data using spring mock, dbunit and HSQL
Transactional problems in accessing data using spring mock, dbunit and HSQL