junit4 icon indicating copy to clipboard operation
junit4 copied to clipboard

Make Assert failNotEquals public

Open Martin-Office opened this issue 3 years ago • 1 comments

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?

Martin-Office avatar Oct 06 '22 20:10 Martin-Office

FWIW JUnit Jupiter provides AssertionFailureBuilder for this use case.

marcphilipp avatar Oct 07 '22 08:10 marcphilipp