Two Laptop Bag
The moose likes Testing and the fly likes Is DBUnit an in-memory database? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply 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: 35241
    
    7
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.


Android appsImageJ pluginsJava web charts
NareshAnkuskani Kumar
Ranch Hand

Joined: Sep 15, 2005
Posts: 76
Thanks for the reply
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Is DBUnit an in-memory database?
 
Similar Threads
Transactional problems in accessing data using spring mock, dbunit and HSQL
Transactional problems in accessing data using spring mock, dbunit and HSQL
How to pause DBUnit to examine database with Squirrel?
DbUnit + memory HSQLDB
Transactional problems in accessing data using spring mock, dbunit and HSQL