junit4
junit4 copied to clipboard
Replacement API for Hamcrest methods in ExpectedException and ErrorCollector
We need to decide if we need replacement APIs for the methods that take Hamcrest matchers as parameters.
The discussion has started in #1150.
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.