DbUnit Maven Plugin
Use this plugin to execute DbUnit's utilities.
Goals Overview
- dbunit:operation: Execute a database operation using an external dataset file.
- dbunit:export: Export database tables into a dataset file.
- dbunit:compare: Compare a dataset with database.
Usage
Instructions on how to use the DbUnit Maven Plugin can be found on the usage page.
Examples
For the full list of examples refer to the menu bar on the left top.
- Clear database and insert a dataset before test phase.
- Use multiple source files to create a composite dataset.
- Export entire database to a dataset file after test.
- Export a database using a custom query.
- Hide username/password in settings.xml.
A comprehensive and runnable example is available in Git

