Menu

#208 DbUnitAssert: add assert method that strategizes the compare algorithm on a per column basis

2.6.0
closed-accepted
None
5
2018-10-14
2017-10-18
Jeff Jensen
No

This enables equal, not equal, less than, greater than, complex compare logic, etc. on a per column basis.

  • Create interface for the value comparer strategy.
  • Assert method parameter of a Map of column comparers.
  • Enable creating a failure message by the compare strategy.

Discussion

  • Jeff Jensen

    Jeff Jensen - 2017-12-31
    • Release: (future) --> 2.6.0
     
  • Jeff Jensen

    Jeff Jensen - 2018-01-10

    value-comparer branch has this work-in-progress.

     
  • Jeff Jensen

    Jeff Jensen - 2018-01-10

    The published 2.6.0-SNAPSHOT is built from the value-comparer branch.

     
  • Hans Deragon

    Hans Deragon - 2018-04-25

    What is the status of this project? How does it work? This is a killer feature that is missing in DbUnit. Once implemented, we should bump DbUnit to version 3.0 in my opinion, to signify the change (ok, no API gets broken, but still, it is a major feature).

     
    • Jeff Jensen

      Jeff Jensen - 2018-04-25

      Please see the value-comparer branch.

      It is fully functional and working well. Currently, I am finishing docs and tests. Would appreciate any help with that!

      Would also appreciate feedback on the design, how tests use it, names, et al - everything about it.

      This page has a start of intro doc: http://dbunit.sourceforge.net/testcases.html

      I really appreciate your enthusiastic post! Thank you for that, I agree it is a major feature add and in our use so far has been really great for solving testing issues that don't work for equality.

       
  • Jeff Jensen

    Jeff Jensen - 2018-08-20

    This feature is about ready for release. Please see these pages for docs/info:
    Data Comparisons
    PrepAndExpectedTestCase examples

    Anyone else tried it; have feedback on the feature and docs?

     
  • Jeff Jensen

    Jeff Jensen - 2018-10-14
    • status: open --> closed-accepted
     

Log in to post a comment.

MongoDB Logo MongoDB