Fixed test assertions to use assertFalse assertion method because assertEquals assertion method doesn't call the target object equals method when the 1st provided parameter is null:
FYI, here are some snippet codes from the Junit Jupiter Assertions API that I'm talking about:
The org.junit.jupiter.api.AssertEquals.assertEquals() method:
Fixed test assertions to use
assertFalse
assertion method becauseassertEquals
assertion method doesn't call the target objectequals
method when the 1st provided parameter isnull
:FYI, here are some snippet codes from the Junit Jupiter Assertions API that I'm talking about:
The
org.junit.jupiter.api.AssertEquals.assertEquals()
method:And the
org.junit.jupiter.api.AssertionUtils.objectsAreEqual()
:@otaviojava, could you review this PR, please?