Advantages of DbUnit
The reasons to use this testing tool can be summarized as follows :
- A framework which simplifies operations for each stage in the life cycle of individual database tests.
- It provides a very simple XML based mechanism for loading test data.
- It provides equally a simple mechanism to export existing test data into the XML format for subsequent use.
- It can work with very large datasets.
- It can help verify your data matches an expected set of values.
- It provides methods for comparing data between flat files, queries and database tables.