-
- 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 UnithasDrawable(@DrawableRes() Integer resId, Function1<Drawable, Bitmap> toBitmap)Checks if the view displays given drawable UnithasDrawable(Drawable drawable, Function1<Drawable, Bitmap> toBitmap)Checks if the view displays given drawable UnithasDrawableWithTint(@DrawableRes() Integer resId, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)Checks if the view displays given drawable UnithasDrawableWithTint(Drawable drawable, @ColorRes() Integer tintColorId, Function1<Drawable, Bitmap> toBitmap)Checks if the view displays given drawable abstract ViewInteractionDelegategetView()abstract Matcher<Root>getRoot()abstract UnitsetRoot(Matcher<Root> root)-
Methods inherited from class io.github.kakaocup.kakao.image.ImageViewAssertions
assert, doesNotExist, hasAnyTag, hasBackgroundColor, hasBackgroundColor, hasDescendant, hasNotDescendant, hasNotSibling, hasSibling, hasTag, inRoot, isActivated, isAutoHandwritingEnabled, isClickable, isCompletelyAbove, isCompletelyBelow, isCompletelyDisplayed, isCompletelyLeftOf, isCompletelyRightOf, isDirty, isDisabled, isDisplayed, isEnabled, isFocusable, isFocused, isForceDarkAllowed, isGone, isHapticFeedbackEnabled, isHovered, 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 matchedtoBitmap- 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 matchedtoBitmap- 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 matchedtintColorId- Tint color resource idtoBitmap- 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 matchedtintColorId- Tint color resource idtoBitmap- Lambda with custom Drawable -> Bitmap converter (default is null)
-
getView
abstract ViewInteractionDelegate getView()
-
-
-
-