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 Android's JUnit tests (not connected tests), the CoreMatcher
s seem to be available inside the already-included junit module, while the Matchers
are not.
Thus, to save overhead, and to avoid importing another library, consider using the CoreMatcher
versions of these classes if they suffice:
assertThat(chrome.twiddle(), is(equalTo(0)));
is possible using only CoreMatchers.