{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public class CursorMatchers.CursorMatcher extends BoundedMatcher
| java.lang.Object | |||
| ↳ | org.hamcrest.BaseMatcher | ||
| ↳ | androidx.test.espresso.matcher.BoundedMatcher | ||
| ↳ | androidx.test.espresso.matcher.CursorMatchers.CursorMatcher | ||
A Matcher that matches Cursors based on values in their columns.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
void |
describeTo(Description description) |
boolean |
matchesSafely(Cursor cursor) |
CursorMatchers.CursorMatcher |
withStrictColumnChecks(boolean checkColumns)Allows test authors to override whether the the matcher should throw an if the column name/count is not valid. |
Inherited methods |
||||||
|---|---|---|---|---|---|---|
|
||||||
|
||||||
public CursorMatchers.CursorMatcher withStrictColumnChecks(boolean checkColumns)
Allows test authors to override whether the the matcher should throw an if the column name/count is not valid. This is useful in the case where a cursor may iterates over a data set with variable columns. By default, the checks are off.