It looks like the hamcrest org.hamcrest.Matchers
class is very similar to org.hamcrest.CoreMatchers
(though it looks like Matchers
has mor
If you use Mockito a lot (as I do), you might be doing:
import org.mockito.Mockito;
or
static import org.mockito.Mockito.*;
and since the Mockito
class extends Mockito's Matchers
class, then you can end up with conflicts between either the Matchers classes or their static methods. Having CoreMatchers allows me to use JUnit-derived CoreMatchers in the same class as Mockito, without having to full-qualify them at their point of usage.