public class EspRecyclerView extends EspView
Actions and assertions for RecyclerView.
| Modifier and Type | Field and Description |
|---|---|
protected int |
resourceId |
| Constructor and Description |
|---|
EspRecyclerView(EspRecyclerView template)
Create new instance based on given element matcher.
|
EspRecyclerView(int resourceId)
Create new instance matching an element with given resourceId.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertItemCountIs(int expectedCount)
Check that the views adapter contains the expected count of items.
|
static EspRecyclerView |
byId(int resourceId)
Create new instance matching an element with given resourceId.
|
EspRecyclerViewItem |
itemByIndex(int index)
Access item by index known by the adapter.
|
EspRecyclerViewLayoutManager |
layoutManager()
Access the layout manager of this recycler view.
|
assertIsDisabled, assertIsDisplayedOnScreen, assertIsEnabled, assertIsHidden, assertIsNotSelected, assertIsPartiallyDisplayedOnly, assertIsPartiallyDisplayedOnScreen, assertIsSelected, assertIsVisible, assertNotExist, baseMatcher, byAll, click, createMatcherList, doubleClick, findView, findView, longClick, swipeDown, swipeUppublic EspRecyclerView(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public EspRecyclerView(EspRecyclerView template)
Create new instance based on given element matcher.
template - Pre configured element matcher.public static EspRecyclerView byId(int resourceId)
Create new instance matching an element with given resourceId.
resourceId - Identifier for this element.public void assertItemCountIs(int expectedCount)
Check that the views adapter contains the expected count of items.
This counts the items existing in adapter and not the visible items.
expectedCount - Zero for no items or a positive number.public EspRecyclerViewItem itemByIndex(int index)
Access item by index known by the adapter.
index - Item index in adapter.public EspRecyclerViewLayoutManager layoutManager()
Access the layout manager of this recycler view.