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

http://diffkit.googlecode.com/ · Plain Text · 26 lines · 21 code · 5 blank · 0 comment · 0 complexity · c4a59056a1f754690752b3e40627a80c MD5 · raw file

  1. test10 README
  2. =========
  3. Description
  4. ----------
  5. Compare two DB tables using mostly automatic default provided by the MagicPlan. Plan specifies keyColumnNames,
  6. which are different from the pk defined in the database for the target table. If alignment was carried out using
  7. table pk (column1), all rows would be row diffs. Instead, engine is able to align the rows and produce only column diffs
  8. because of the keyColumnName override (column3).
  9. Assumptions
  10. -----------
  11. - lhs & rhs are DB tables
  12. - lhs vs. rhs has only column diffs
  13. - plan file supplies lhs table name and rhs table name
  14. - plan file supplies ConnectionInfo to H2 DB
  15. - lhs and rhs tables have identical structure
  16. - MagicPlan reverse engineers TableModels from the database
  17. - MagicPlan generates default TableComparison by aligning lhs column to rhs column based on name
  18. - MagicPlan uses COLUMN 3 as the key for both tables. This overrides the definition in the DB (column1).
  19. Expectations
  20. -----------
  21. - 7 column diffs