-
public final class RootBuilderClass for building root matchers
This class helps to build matches for root. Please note that any function invoking will add specific matcher to the list and after that all of them will be combined with help of AllOf.allOf()
-
-
Constructor Summary
Constructors Constructor Description RootBuilder()
-
Method Summary
Modifier and Type Method Description final UnitisDialog()Matches root that is dialog final UnitisNotDialog()Matches root that is not dialog final UnitisFocusable()Matches root that is focusable final UnitisNotFocusable()Matches root that is not focusable final UnitisPlatformPopup()Matches root that is platform popup final UnitisNotPlatformPopup()Matches root that is not platform popup final UnitisSystemAlertWindow()Matches root that is system alert window final UnitisNotSystemAlertWindow()Matches root that is not system alert window final UnitisTouchable()Matches root that is touchable final UnitisNotTouchable()Matches root that is not touchable final UnitwithDecorView(Function1<ViewBuilder, Unit> function)Matches root that has decor view matching given matcher final UnitwithMatcher(Matcher<Root> matcher)Matches root with given custom matcher final Matcher<Root>getRootMatcher()Returns combined root matchers with AllOf. -
-
Method Detail
-
isNotDialog
final Unit isNotDialog()
Matches root that is not dialog
-
isFocusable
final Unit isFocusable()
Matches root that is focusable
-
isNotFocusable
final Unit isNotFocusable()
Matches root that is not focusable
-
isPlatformPopup
final Unit isPlatformPopup()
Matches root that is platform popup
-
isNotPlatformPopup
final Unit isNotPlatformPopup()
Matches root that is not platform popup
-
isSystemAlertWindow
final Unit isSystemAlertWindow()
Matches root that is system alert window
-
isNotSystemAlertWindow
final Unit isNotSystemAlertWindow()
Matches root that is not system alert window
-
isTouchable
final Unit isTouchable()
Matches root that is touchable
-
isNotTouchable
final Unit isNotTouchable()
Matches root that is not touchable
-
withDecorView
final Unit withDecorView(Function1<ViewBuilder, Unit> function)
Matches root that has decor view matching given matcher
- Parameters:
function- ViewBuilder which will result in decor view matcher
-
withMatcher
final Unit withMatcher(Matcher<Root> matcher)
Matches root with given custom matcher
- Parameters:
matcher- Custom root matcher to be added
-
getRootMatcher
final Matcher<Root> getRootMatcher()
Returns combined root matchers with AllOf.allOf()
-
-
-
-