next up previous
Next: HTTPUnit and/or HTMLUnit testing Up: Test scenarios Previous: JUnit tests scenarios

Dbunit testing scenarios

The purpose of this test is to check the state of the database before and after the backup. The test is performed using external tool (Dbunit).
Input data: database image before and after backup
Output: true if images are identical

  1. Export a database to a xml file (Dbunit)
  2. Dump the same database to our format type file
  3. Restore database by means of the file created by dump method
  4. Export the restored database to a new xml file (Dbunit)
  5. Compare those two xml files (Dbunit) and make sure they are identical

Wiktor Kolodziej 2006-01-12