ElementT - View element type which will be used to perform actions and assertions on match.public abstract class EspAllOfBuilder<ElementT extends EspView>
extends java.lang.Object
Fluent builder fo allOf matcher.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<org.hamcrest.Matcher<? super android.view.View>> |
matcher |
| Constructor and Description |
|---|
EspAllOfBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ElementT |
build()
Create an view element instance with the given matcher.
|
EspAllOfBuilder<ElementT> |
withId(int resourceId)
Add matcher for element id.
|
EspAllOfBuilder<ElementT> |
withIsDisplayed()
Add matcher that element is displayed.
|
EspAllOfBuilder<ElementT> |
withParentInHierarchy(int resourceId)
Add matcher that element must have an expected parent with id.
|
EspAllOfBuilder<ElementT> |
withText(java.lang.String text)
Add matcher for text.
|
EspAllOfBuilder<ElementT> |
withVisibility(android.support.test.espresso.matcher.ViewMatchers.Visibility visible)
Add matcher for visibility.
|
protected java.util.ArrayList<org.hamcrest.Matcher<? super android.view.View>> matcher
public EspAllOfBuilder<ElementT> withId(int resourceId)
Add matcher for element id.
resourceId - expected idpublic EspAllOfBuilder<ElementT> withIsDisplayed()
Add matcher that element is displayed.
public EspAllOfBuilder<ElementT> withParentInHierarchy(int resourceId)
Add matcher that element must have an expected parent with id.
resourceId - expected parent idpublic EspAllOfBuilder<ElementT> withText(java.lang.String text)
Add matcher for text.
text - expected textpublic EspAllOfBuilder<ElementT> withVisibility(android.support.test.espresso.matcher.ViewMatchers.Visibility visible)
Add matcher for visibility.
visible - expected visibilitypublic ElementT build()
Create an view element instance with the given matcher.