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

http://diffkit.googlecode.com/ · Plain Text · 28 lines · 24 code · 4 blank · 0 comment · 0 complexity · 9bf7b0fae7bb621685f8ce50422ec308 MD5 · raw file

  1. test12 README
  2. =========
  3. Description
  4. ----------
  5. Compare heterogenous sources, lhs is DB rhs is FILE, using MagicPlan. Differences in table structure are
  6. silently ignored by AutomaticTableComparison. Column3 is a BIGINT in the DB, but a STRING in the FILE,
  7. because the FILE is only auto modelled. So the Diffor has to perform conversion.
  8. Assumptions
  9. -----------
  10. - lhs is DB table
  11. - rhs is FILE table
  12. - lhs vs. rhs has both row and column diffs
  13. - table structures are different. AutomaticTableComparison ensures that only matching column names are used
  14. - plan file supplies lhs table name and rhs file name
  15. - plan file supplies ConnectionInfo to H2 DB
  16. - MagicPlan reverse engineers lhs TableModel from the database
  17. - MagicPlan reverse engineers rhs TableModel from the file
  18. - MagicPlan generates default TableComparison by aligning lhs column to rhs column based on name
  19. - Column3 comparison converts the FILE value from STRING to LONG before diffing
  20. Expectations
  21. -----------
  22. - 2 column diffs
  23. - 3 row diffs
  24. - diff in row COLUMN1=3333 is not found because it occurs in COLUMN4, which was not in diffColumnNames list.