-
Notifications
You must be signed in to change notification settings - Fork 0
Db Unit Setup Tool
Roman Stumm edited this page Mar 13, 2015
·
1 revision
Invoke DBUnit to import a database dump from xml or excel format. Optional execution of DELETE with a different dataset possible.
You can use the invocation "dbSetup" from within the dbmigrate tool's xml configuration (see xml script features).
java com.agimatec.database.DbUnitSetupTool {driver} {url} {user} {password} [{deleteDataFile}](-d) [{insertDataFile}](-i)
Parameters in required sequence:
- driver = Jdbc Driver class name
- url = Jdbc Connect url
- user = database user
- password = database password
- -d dataset with tables to delete (delete_data.xml)
- -i dataset with data to insert (data.xml)
java com.agimatec.database.DbUnitSetupToolorg.postgresql.Driver jdbc:postgresql://localhost:5432/testdb admin password -d delete_data.xml -i testdb.xml