O'Reilly Open Source Convention
Books Safari Bookshelf Conferences O'Reilly Network
   


Arrow Home
Arrow Registration
Arrow Speakers
Arrow Keynotes
Arrow Tutorials
Arrow Sessions
Arrow At-a-Glance
Arrow Wiki
Arrow BOFs
Arrow Events
Arrow Exhibitors
Arrow Sponsors
Arrow Hotel/Travel
Arrow Venue Map
Arrow See & Do
Arrow Tips for
 Attending
Arrow Press
Arrow Mail List

OSCON.

Session

DBUnit: Easier Database Testing
Eric Pugh, Principal, OpenSource Connections

Track: Java
Date: Wednesday, July 28
Time: 4:30pm - 5:15pm
Location: Salon B

TrackBackTrackBack

Tired of writing SQL scripts to update your database prior to running unit tests? Find you are creating redundant data just to have a clean database for testing? Not sure how to validate that an operation actually updated the database properly? DBUnit is here to help. It is JUnit applied to databases! You can assert the contents of a table or subset of data in a table. You can develop a script of data and have it inserted or updated for you into the database!

This presentation will walk you through inserting data into a clean database, updating an already modified database, and asserting both a straight JDBC SQL transaction and a Hibernate based Data Access Object properly interacted with the database. Additionally, we'll demonstrate how easily you can use multiple databases, including Hypersonic SQL and MySQL without code changes.



O'Reilly Home | Privacy Policy

© 2004, O'Reilly Media, Inc.