I've just released a little open-source project DbUnit Test Skeleton 1.0.0.
This project helps you to setup a DbUnit test using an embedded Derby database by providing
- An AbstractEmbeddedDbTestCase.java, which creates a connection to the database, sets some useful defaults, and provides improved error reporting,
- The utility DatabaseCreator.java for creating and initializing the embedded DB based on a .ddl file,
- Sample create_db_content.ddl and dbunit-test_data_set.xml for creating the database and filling it with test data,
- Instructions for using them.
Everything is well commented (I hope) to help you to start using it quickly.
More details including examples and some useful links to related utilities on yhe DbUnit Test Skeleton page.