/tst/org/diffkit/diff/testcase/test22.README.txt

http://diffkit.googlecode.com/ · Plain Text · 27 lines · 23 code · 4 blank · 0 comment · 0 complexity · cc376996a21acfe31e5799d0759ae08d MD5 · raw file

  1. test22 README
  2. =========
  3. Description
  4. ----------
  5. Demonstrates ability of TestCaseRunner to test for Exceptions (or failures) of
  6. a specified type. In this case, the MagicPlan file specifies displayColumnNames
  7. that don't exist in the sources. So we expect that the framework will throw an
  8. appropriate exception.
  9. Assumptions
  10. -----------
  11. - lhs & rhs are DB tables
  12. - plan file supplies lhs table name and rhs table name
  13. - plan file supplies ConnectionInfo to H2 DB
  14. - lhs and rhs tables have identical structure
  15. - plan file supplies key for ordering the rows
  16. - plan file specifies displayColumnNames that don't exist in specified sources
  17. - MagicPlan reverse engineers TableModels from the database
  18. - MagicPlan construction process validates the displayColumnNames against DB tables
  19. Expectations
  20. -----------
  21. - displayColumNames validation fails
  22. - a DKUserException (end user targeted) is thrown by framework, and caught by TCR
  23. - message in DKUserException indicates which column names fail validation