public class EspRecyclerViewLayoutManager
extends java.lang.Object
Assertions for RecyclerView layout manager.
| Constructor and Description |
|---|
EspRecyclerViewLayoutManager(android.support.test.espresso.ViewInteraction recyclerViewInteraction)
Create new element instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertColumnCount(int expectedColumnCount)
Check that the
GridLayoutManager has expected count of column. |
void |
assertGridLayoutManager()
Check that the layout manager is of type
GridLayoutManager |
void |
assertLinearLayoutManager()
Check that the layout manager is of type
LinearLayoutManager |
public EspRecyclerViewLayoutManager(android.support.test.espresso.ViewInteraction recyclerViewInteraction)
Create new element instance.
recyclerViewInteraction - prepared interaction for target RecyclerViewpublic void assertLinearLayoutManager()
Check that the layout manager is of type LinearLayoutManager
public void assertGridLayoutManager()
Check that the layout manager is of type GridLayoutManager
public void assertColumnCount(int expectedColumnCount)
Check that the GridLayoutManager has expected count of column.
expectedColumnCount - expected count of columns