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

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

  1. test15 README
  2. =========
  3. Description
  4. ----------
  5. Test global numberTolerance and toleranceMap. MagicPlan will ensure that no numeric diffs of magnitude
  6. less than 3 will be considered (numberTolerance =2), and that any diffs in COLUMN3 and COLUMN4 that
  7. are not greater than 4 (toleranceMap; 4=COLUMN3,COLUMN4) will be ignored.
  8. Assumptions
  9. -----------
  10. - lhs & rhs are DB tables
  11. - lhs vs. rhs has column and row diffs
  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. - MagicPlan reverse engineers TableModels from the database
  16. - MagicPlan generates default TableComparison by aligning lhs column to rhs column based on name
  17. - MagicPlan builds TableComparison to globally tolerate diffs of 2 or less in any numeric columns
  18. - MagicPlan overrides the global tolerance for COLUMN3 and COLUMN4, setting it to 4 instead of 2
  19. Expectations
  20. -----------
  21. - 2 row diffs
  22. - 4 column diffs, all in COLUMN4, because all other diffs (in COLUMN2 and COLUMN3) are within tolerance.