Package 

Interface ImageViewAssertions

  • All Implemented Interfaces:
    io.github.kakaocup.kakao.common.assertions.BaseAssertions

    
    public interface ImageViewAssertions
     implements BaseAssertions
                        

    Provides assertion for image views

    • Method Summary

      Modifier and Type Method Description
      Unit hasDrawable(@DrawableRes() Integer resId, Function1<Drawable, Bitmap> toBitmap) Checks if the view displays given drawable
      Unit hasDrawable(Drawable drawable, Function1<Drawable, Bitmap> toBitmap) Checks if the view displays given drawable
      Unit hasDrawableWithTint(@DrawableRes() Integer resId, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap) Checks if the view displays given drawable
      Unit hasDrawableWithTint(Drawable drawable, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap) Checks if the view displays given drawable
      abstract ViewInteractionDelegate getView()
      abstract Matcher<Root> getRoot()
      abstract Unit setRoot(Matcher<Root> root)
      • Methods inherited from class io.github.kakaocup.kakao.image.ImageViewAssertions

        assert, doesNotExist, hasAnyTag, hasBackgroundColor, hasBackgroundColor, hasDescendant, hasNotDescendant, hasNotSibling, hasSibling, hasTag, inRoot, isClickable, isCompletelyAbove, isCompletelyBelow, isCompletelyDisplayed, isCompletelyLeftOf, isCompletelyRightOf, isDisabled, isDisplayed, isEnabled, isFocusable, isFocused, isGone, isInvisible, isNotClickable, isNotCompletelyDisplayed, isNotDisplayed, isNotFocusable, isNotFocused, isNotSelected, isSelected, isVisible, matches, notMatches
      • Methods inherited from class java.lang.Object

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

      • hasDrawable

         Unit hasDrawable(@DrawableRes() Integer resId, Function1<Drawable, Bitmap> toBitmap)

        Checks if the view displays given drawable

        Parameters:
        resId - Drawable resource to be matched
        toBitmap - Lambda with custom Drawable -> Bitmap converter (default is null)
      • hasDrawable

         Unit hasDrawable(Drawable drawable, Function1<Drawable, Bitmap> toBitmap)

        Checks if the view displays given drawable

        Parameters:
        drawable - Drawable to be matched
        toBitmap - Lambda with custom Drawable -> Bitmap converter (default is null)
      • hasDrawableWithTint

         Unit hasDrawableWithTint(@DrawableRes() Integer resId, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)

        Checks if the view displays given drawable

        Parameters:
        resId - Drawable resource to be matched
        tintColorId - Tint color resource id
        toBitmap - Lambda with custom Drawable -> Bitmap converter (default is null)
      • hasDrawableWithTint

         Unit hasDrawableWithTint(Drawable drawable, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)

        Checks if the view displays given drawable

        Parameters:
        drawable - Drawable to be matched
        tintColorId - Tint color resource id
        toBitmap - Lambda with custom Drawable -> Bitmap converter (default is null)
      • getRoot

         abstract Matcher<Root> getRoot()