Download - Brief introduction into DbUnit Express, Q3/2011

Transcript
  • 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!