fest-assert-2.x
fest-assert-2.x copied to clipboard
Remove methods from *ArrayAssert that check is sorted
This is another case of API explosion. Users can simply create the array they expect and check for equality. We already have a nice way to pass a Comparator.
The idea was to check that an array is sorted without looking at its content. If we remove this, there won't be any easy way to do that.
Thanks Joel. I agree. Now, checking if an array is sorting, based on a Comparator, should exist only for Object arrays. I need to double-check the API to see we don't expose it to array of primitives.