Hi Siddhi, I'm not familiar with the Mockito code, but if your solution passes all unit tests and is better, then I think it's fine. Thanks, James
On Friday, July 3, 2015, Siddhi Mehta <[email protected]> wrote: > 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 >
