I've implemented Daniele Bottilo's Drawable matcher from his medium post.
Now I'd like to use it to test that my image view is not empty. I tried this:
onView(withId(R.id.image))
.check( matches( not(noDrawable()) ) );
It does not work, the IDE warns me
not(...guava.base.Predicate) in Predicates cannot be applied to (org.hamcrest.Matcher)
I am new to Espresso and havent managed to Google the answer successfully. Is there a 'Not' in another package that I should be using, or what am I doing wrong here?