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.
value-comparer branch has this work-in-progress.
The published 2.6.0-SNAPSHOT is built from the value-comparer branch.
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).
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.
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?