junit4 icon indicating copy to clipboard operation
junit4 copied to clipboard

Replacement API for Hamcrest methods in ExpectedException and ErrorCollector

Open marcphilipp opened this issue 10 years ago • 1 comments

We need to decide if we need replacement APIs for the methods that take Hamcrest matchers as parameters.

The discussion has started in #1150.

marcphilipp avatar Jul 08 '15 07:07 marcphilipp

Most users shouldn't use ExpectedException (unless they cannot use lambdas).

The best way to replace the methods in ErrorCollector is to allow the caller so specify a Predicate, but that requires JDK 1.8.

Removing Hamcrest APIs would break backwards compatibility, so I don't see a reason to fix this in 4.13. Removing this from the 4.13 milestone.

kcooney avatar Aug 07 '17 00:08 kcooney