Why doesn’t JUnit provide assertNotEquals methods?

Does anybody know why JUnit 4 provides assertEquals(foo,bar) but not assertNotEqual(foo,bar) methods?

It provides assertNotSame (corresponding to assertSame) and assertFalse (corresponding to assertTrue), so it seems strange that they didn’t bother including assertNotEqual.

By the way, I know that JUnit-addons provides the methods I’m looking for. I’m just asking out of curiosity.

11 Answers
11

Leave a Comment