The problem was that the wrong hamcrest.Matcher
, not hamcrest.MatcherAssert
, class was being used. That was being pulled in from a junit-4.8 dependency one of my dependencies was specifying.
To see what dependencies (and versions) are included from what source while testing, run:
mvn dependency:tree -Dscope=test