Hello All,

I was trying to use Junit ExpectedException for a test and I see a class
not found exception
java.lang.NoSuchMethodError: org/hamcrest/Matcher.describeMismatch

Reading the blog
<https://tedvinke.wordpress.com/2013/12/17/mixing-junit-hamcrest-and-mockito-explaining-nosuchmethoderror/>
seems like the issue maybe caused by using mockito-all which bundles in an
older version of hamcrest.

I was wondering if anyone else has encounter the issue.
Also wondering if we can switch to using mockito-core instead of
mockito-all?

-- 
Regards,
Siddhi

Reply via email to