Brief introduction into DbUnit Express, Q3/2011
-
Upload
jakub-holy -
Category
Spiritual
-
view
500 -
download
0
description
Introduction into DbUnit Express, a thin wrapper for DbUnit adding convention over configuration, easier configuration, better support for Spring JDBC, and couple of highly useful utilities such as RowComparator. See http://sourceforge.net/apps/mediawiki/jeeutils/index.php?title=DbUnit_Express#DbUnit_Express_subproject
Transcript of Brief introduction into DbUnit Express, Q3/2011
- 1. DbUnitExpress
2. Unit test for DAO in 10 min Painless DB testing 3. Show time 4. Advantages over bare DbUnit
- Convention over configuration
- Pre-set for embedded Derby
5. location of .ddl & data .xml Battle-hardened configuration ( verbose xml, schema ) 6. Better error reporting 7. Utilities
- Db.Creator, RowComparator, getDataSource, ...
8. Questions answers 9. Advanced features
- Own dataset XML for each test
10. RowComparator 11. Access to the underlying DB
- in a test: DataSource, Connection, DbUnit Con.
12. after: review post-test state in Derby Database modification at runtime
- .replaceDatabase, .clearTable
dbunit-embedded.properties
- custom db (driver, url, user, psw)
13. Thank you!