junit-team / junit4

A programmer-oriented testing framework for Java.
https://junit.org/junit4
Eclipse Public License 1.0
8.51k stars 3.24k forks source link

Make Assert failNotEquals public #1751

Open Martin-Office opened 1 year ago

Martin-Office commented 1 year ago

I had to implement a custom equal function but I cannot report the failure with the existing functionality of Assert class. I wanted to reuse the function Assert.failNotEquals but it's private, not sure why. Can you make it public?

marcphilipp commented 1 year ago

FWIW JUnit Jupiter provides AssertionFailureBuilder for this use case.