Tests: Correction in AbstractShapeBuilderTestCase

Removed check that two shapes that are different according
to equals() have different hashCode since that is not required
by the contract of hashCode.
This commit is contained in:
Christoph Büscher 2015-11-30 11:07:09 +01:00
parent e182072b6f
commit a0fe93fa67
1 changed files with 0 additions and 1 deletions

View File

@ -111,7 +111,6 @@ public abstract class AbstractShapeBuilderTestCase<SB extends ShapeBuilder> exte
assertThat("same shape's hashcode returns different values if called multiple times", firstShape.hashCode(),
equalTo(firstShape.hashCode()));
assertThat("different shapes should not be equal", mutate(firstShape), not(equalTo(firstShape)));
assertThat("different shapes should have different hashcode", mutate(firstShape).hashCode(), not(equalTo(firstShape.hashCode())));
SB secondShape = copyShape(firstShape);
assertTrue("shape is not equal to self", secondShape.equals(secondShape));