phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: ClassNotFoundException caused by mixing Mockito &Hamcrest
Date Tue, 07 Jul 2015 00:42:22 GMT
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 <siddhi.s.m@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message