EqualsHashCodeTest.TestEqualsAgainstNull checks incorrectly
Brought to you by:
vbossica
If you look at the code for testEqualsAgainstNull, it
has statements such as
Assert.assertNotEquals("null vs. 1st", null, eq1);
If you look at assertNotEquals, however, you will see
that eq1.equals(null) is never called. Instead the test
will always suceed, even if eq1.equals(null) returns true.
-