see Issue 77, the bug is now in describeMismatchSafely(). A correct version
would be (actual.compareTo(expected) -> expected.compareTo(actual)):
@Override
public void describeMismatchSafely(T actual, Description
mismatchDescription) {
mismatchDescription.appendValue(expected) .appendText(" was ")
.appendText(comparison(expected.compareTo(actual)))
.appendText(" ").appendValue(actual);
};
Original issue reported on code.google.com by soma67it...@googlemail.com on 10 Jun 2009 at 3:26
Original issue reported on code.google.com by
soma67it...@googlemail.com
on 10 Jun 2009 at 3:26