Package 

Interface TabLayoutAssertions

  • 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
      Unit isTabSelected(Integer index) Checks if TabLayout have selected tab with given index
      Unit hasSelectedText(String text) Checks if TabLayout have selected tab with given text
      Unit hasSelectedText(@StringRes() Integer resId) Checks if TabLayout have selected tab with given text
      Unit hasText(String text, Integer position) Checks if TabLayout have tab with given text with selected position
      Unit hasText(@StringRes() Integer resId, Integer position) Checks if TabLayout have selected tab with given text
      Unit hasTabCount(Integer count) Checks the number of tabs currently registered with the action bar
      abstract ViewInteractionDelegate getView()
      abstract Matcher<Root> getRoot()
      abstract Unit setRoot(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
      • hasText

         Unit hasText(String text, Integer position)

        Checks if TabLayout have tab with given text with selected position

        Parameters:
        text - tab title to be checked
        position - 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 resource
        position - tab position, starts from 0
      • hasTabCount

         Unit hasTabCount(Integer count)

        Checks the number of tabs currently registered with the action bar

        Parameters:
        count - tabs