Menu

#26 file property too generic..

open
dbunit (4)
5
2004-10-07
2004-10-07
Anonymous
No

The property for the file to be imported is kinda generic and
although I haven't come accross a problem yet, it would be nice to
have data inserted using db unit when tests start rather than in the
test classes themselves.

For example

maven.dbunit.deleteType=DELETE
maven.dbunit.driverClassName=com.mysql.jdbc.Driver
maven.dbunit.format=xml
maven.dbunit.importType=CLEAN_INSERT
maven.dbunit.password=
maven.dbunit.schema=foo
maven.dbunit.url=jdbc:mysql://localhost:3306/foo
maven.dbunit.user=root
file=src/conf/sample-data.xml

something like

maven.dbunit.file=src/conf/sample-data.xml

would make dbunit more usable when testing without extending
dbunit test class.

Mark

Discussion


Log in to post a comment.

MongoDB Logo MongoDB