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
- Clear database and insert a dataset before test phase.
- Export entired database to a dataset file after test.
- Hide username/password in settings.xml.
A comprehensive and runnable example is available in SVN