Skip to content

Commit

Permalink
Fix equals tester for different instances
Browse files Browse the repository at this point in the history
  • Loading branch information
p91paul authored Jun 25, 2020
1 parent 0860ba7 commit 5c69d1d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ private void shouldEqualSameInstanceFewTimes(final Object object) {

private void shouldEqualDifferentInstance(final Object object) {
final Object otherObject = objectGenerator.generateSameInstance(object);
testAssertions.assertThatEqualsMethodFor(object)
.isEqualTo(otherObject);
testAssertions.assertThatEqualsMethodFor(object)
.isSymmetric(otherObject);
}
Expand Down

0 comments on commit 5c69d1d

Please sign in to comment.