Closed GoogleCodeExporter closed 9 years ago
The IsEqual matcher assumes a correct implementation of equals(o). It cannot
be used
to test an implementation of equals.
To test equals using assertThat, compare the result to a boolean value. E.g.
assertThat(o.equals(null), equalTo(false));
assertThat(o.equals(o), equalTo(true));
... etc.
Original comment by nat.pr...@gmail.com
on 10 Jun 2008 at 9:53
Duplicate of issue 22, which is fixed in trunk.
Please search the existing issues to avoid submitting duplicates.
Original comment by nat.pr...@gmail.com
on 10 Jun 2008 at 9:55
Original issue reported on code.google.com by
goren.ve...@gmail.com
on 10 Jun 2008 at 7:10