public class

CursorMatchers.CursorMatcher

extends BoundedMatcher<java.lang.Object, Cursor>

 java.lang.Object

↳<any>

androidx.test.espresso.matcher.BoundedMatcher<java.lang.Object, Cursor>

↳androidx.test.espresso.matcher.CursorMatchers.CursorMatcher

Overview

A that matches s based on values in their columns.

Summary

Methods
public voiddescribeTo(Description description)

public booleanmatchesSafely(Cursor cursor)

public CursorMatchers.CursorMatcherwithStrictColumnChecks(boolean checkColumns)

Allows test authors to override whether the the matcher should throw an java.lang.IllegalArgumentException if the column name/count is not valid.

from BoundedMatcher<T, S>describeMismatch, matches, matchesSafely
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public boolean matchesSafely(Cursor cursor)

public void describeTo(Description description)

public CursorMatchers.CursorMatcher withStrictColumnChecks(boolean checkColumns)

Allows test authors to override whether the the matcher should throw an java.lang.IllegalArgumentException 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.