CursorMatchers.CursorMatcher

class CursorMatchers.CursorMatcher : BoundedMatcher


A Matcher that matches Cursors based on values in their columns.

Summary

Public functions

Unit
describeTo(description: Description!)
Boolean
CursorMatchers.CursorMatcher!

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

Public functions

describeTo

fun describeTo(description: Description!): Unit

matchesSafely

fun matchesSafely(cursor: Cursor!): Boolean

withStrictColumnChecks

fun withStrictColumnChecks(checkColumns: Boolean): CursorMatchers.CursorMatcher!

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.