Package 

Class DrawableMatcher

  • All Implemented Interfaces:
    org.hamcrest.Matcher , org.hamcrest.SelfDescribing

    
    public final class DrawableMatcher
    extends TypeSafeMatcher<View>
                        

    Matches given drawable with current one

    • Method Summary

      Modifier and Type Method Description
      Unit describeTo(Description desc)
      • Methods inherited from class org.hamcrest.TypeSafeMatcher

        _dont_implement_Matcher___instead_extend_BaseMatcher_, toString
      • Methods inherited from class io.github.kakaocup.kakao.common.matchers.DrawableMatcher

        describeMismatch, describeMismatchSafely, matches
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DrawableMatcher

        DrawableMatcher(Integer resId, Drawable drawable, Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)
        Parameters:
        resId - Drawable resource to be matched (default is -1)
        drawable - Drawable instance to be matched (default is null)
        toBitmap - Lambda with custom Drawable -> Bitmap converter (default is null)