-
- All Implemented Interfaces:
-
io.github.kakaocup.kakao.common.assertions.BaseAssertions
public interface TextViewAssertions implements BaseAssertions
Provides text based assertions for views
-
-
Method Summary
Modifier and Type Method Description UnithasEmptyText()Checks if the view have not any text UnithasAnyText()Checks if the view has any text UnithasText(String text)Checks if the view has given text UnithasText(@StringRes() Integer resId)Checks if the view has given text UnithasText(Matcher<String> matcher)Checks if the view has text that matches given matcher UnithasTextColor(@ColorRes() Integer resId)Checks if the view has given text color UnithasNoText(String text)Checks if the view does not have a given text UnithasNoText(@StringRes() Integer resId)Checks if the view does not have a given text UnithasContentDescription(String text)Checks if the view has given content description UnitcontainsText(String text)Checks if the view contains given text UnitstartsWithText(String text)Checks if the view text start with given substring UnithasHint(String hint)Checks if the view has given hint UnithasHint(@StringRes() Integer resId)Checks if the view has given hint abstract ViewInteractionDelegategetView()abstract Matcher<Root>getRoot()abstract UnitsetRoot(Matcher<Root> root)-
Methods inherited from class io.github.kakaocup.kakao.text.TextViewAssertions
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
-
hasEmptyText
Unit hasEmptyText()
Checks if the view have not any text
-
hasAnyText
Unit hasAnyText()
Checks if the view has any text
-
hasText
Unit hasText(String text)
Checks if the view has given text
- Parameters:
text- Text to be matched
-
hasText
Unit hasText(@StringRes() Integer resId)
Checks if the view has given text
- Parameters:
resId- String resource to be matched
-
hasText
Unit hasText(Matcher<String> matcher)
Checks if the view has text that matches given matcher
-
hasTextColor
Unit hasTextColor(@ColorRes() Integer resId)
Checks if the view has given text color
- Parameters:
resId- Color resource to be matched
-
hasNoText
Unit hasNoText(String text)
Checks if the view does not have a given text
- Parameters:
text- Text to be matched
-
hasNoText
Unit hasNoText(@StringRes() Integer resId)
Checks if the view does not have a given text
- Parameters:
resId- String resource to be matched
-
hasContentDescription
Unit hasContentDescription(String text)
Checks if the view has given content description
- Parameters:
text- Content description to be matched
-
containsText
Unit containsText(String text)
Checks if the view contains given text
- Parameters:
text- Text to be searched
-
startsWithText
Unit startsWithText(String text)
Checks if the view text start with given substring
- Parameters:
text- Text to be searched
-
hasHint
Unit hasHint(String hint)
Checks if the view has given hint
- Parameters:
hint- Text to be matched
-
hasHint
Unit hasHint(@StringRes() Integer resId)
Checks if the view has given hint
- Parameters:
resId- String resource to be matched
-
getView
abstract ViewInteractionDelegate getView()
-
getRoot
abstract Matcher<Root> getRoot()
-
-
-
-