NullPointerException from assertEquals
Brought to you by:
brunnosilva,
cameijer
I believe that there is an error within the Assertion class. When you call assertEquals with two objects that are null an exception is thrown.
They are still equal and should throw no exception. This should be caught in another way.
The behavior is inconsistent with JUnit 3.8.
Workaround: If the expected value is null, rather use assertNull(actual) to test whether the actual value is null.