-
- All Implemented Interfaces:
-
io.github.kakaocup.kakao.common.assertions.BaseAssertions
public interface TabLayoutAssertions implements BaseAssertions
Provides assertions for TabLayout
-
-
Method Summary
Modifier and Type Method Description UnitisTabSelected(Integer index)Checks if TabLayout have selected tab with given index UnithasSelectedText(String text)Checks if TabLayout have selected tab with given text UnithasSelectedText(@StringRes() Integer resId)Checks if TabLayout have selected tab with given text UnithasText(String text, Integer position)Checks if TabLayout have tab with given text with selected position UnithasText(@StringRes() Integer resId, Integer position)Checks if TabLayout have selected tab with given text UnithasTabCount(Integer count)Checks the number of tabs currently registered with the action bar abstract ViewInteractionDelegategetView()abstract Matcher<Root>getRoot()abstract UnitsetRoot(Matcher<Root> root)-
Methods inherited from class io.github.kakaocup.kakao.tabs.TabLayoutAssertions
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
-
isTabSelected
Unit isTabSelected(Integer index)
Checks if TabLayout have selected tab with given index
- Parameters:
index- tab index to be checked
-
hasSelectedText
Unit hasSelectedText(String text)
Checks if TabLayout have selected tab with given text
- Parameters:
text- tab title to be checked
-
hasSelectedText
Unit hasSelectedText(@StringRes() Integer resId)
Checks if TabLayout have selected tab with given text
- Parameters:
resId- reference to string id resource
-
hasText
Unit hasText(String text, Integer position)
Checks if TabLayout have tab with given text with selected position
- Parameters:
text- tab title to be checkedposition- tab position, starts from 0
-
hasText
Unit hasText(@StringRes() Integer resId, Integer position)
Checks if TabLayout have selected tab with given text
- Parameters:
resId- reference to string id resourceposition- tab position, starts from 0
-
hasTabCount
Unit hasTabCount(Integer count)
Checks the number of tabs currently registered with the action bar
- Parameters:
count- tabs
-
getView
abstract ViewInteractionDelegate getView()
-
-
-
-