fest-assert-2.x
fest-assert-2.x copied to clipboard
Refactor ComparisonStrategy to have a single responsiblity
ComparisonStrategy's responsibility is to compare 2 objects, nothing more. Right now this interface has methods that should be in utility classes related to Iterables, arrays and strings.
Yeah I know ... but if you move string comparison to Strings
then Strings
will depend on ComparisonStrategy
(same thing with Iterables
and Arrays
). At the time I felt it wasn't right but if you consider it to be better, I won't disagree.