Package 

Class ChipDrawableMatcher

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

    
    public final class ChipDrawableMatcher
    extends TypeSafeMatcher<View>
                        

    Matches given drawable with current one for the chipIconType drawable type.

    • 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.chip.ChipDrawableMatcher

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

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

      • ChipDrawableMatcher

        ChipDrawableMatcher(Integer resId, Drawable drawable, ChipIconType chipIconType, 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)
        chipIconType - drawable type to verify against
        tintColorId - Tint color resource id (default is null)
        toBitmap - Lambda with custom Drawable -> Bitmap converter (default is null)