{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class CursorMatchers
A collection of Hamcrest matchers that matches a data row in a Cursor.
AdapterViews that are backed by a Cursor are very common. This class contains Matcher
s that can be used together with onData to match a data row in a Cursor. The
Matchers can only operate on a single data row of the cursor and Espresso internally moves the Cursor to the correct adapter position.
Nested types |
|
|---|---|
CursorMatchers.CursorMatcher |
A Matcher that matches Cursors based on values in their columns. |
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
java-static CursorMatchers.CursorMatcher! |
withRowBlob(columnIndex: Int, value: ByteArray!)Returns a matcher that matches a byte[] at a given column index in a Cursors data row. |
java-static CursorMatchers.CursorMatcher! |
withRowBlob(columnIndex: Int, valueMatcher: Matcher<byte[]>!)Returns a matcher that matches a byte[] at a given column index in a Cursors data row. |
java-static CursorMatchers.CursorMatcher! |
withRowBlob(columnName: String!, value: ByteArray!)Returns a matcher that matches a byte[] at a given column index in a Cursors data row. |
java-static CursorMatchers.CursorMatcher! |
withRowBlob(columnName: String!, valueMatcher: Matcher<byte[]>!)Returns a matcher that matches a byte[] at a given column index in a Cursors data row. |
java-static CursorMatchers.CursorMatcher! |
withRowBlob(columnPicker: Matcher<String>!, valueMatcher: Matcher<byte[]>!)Returns a matcher that matches a byte[] at a given column index in a Cursors data row. |
java-static CursorMatchers.CursorMatcher! |
withRowDouble(columnIndex: Int, value: Double)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowDouble(columnIndex: Int, valueMatcher: Matcher<Double>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowDouble(columnName: String!, value: Double)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowDouble(columnName: String!, valueMatcher: Matcher<Double>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowDouble(Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowFloat(columnIndex: Int, value: Float)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowFloat(columnIndex: Int, valueMatcher: Matcher<Float>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowFloat(columnName: String!, value: Float)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowFloat(columnName: String!, valueMatcher: Matcher<Float>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowFloat(Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowInt(columnIndex: Int, value: Int)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowInt(columnIndex: Int, valueMatcher: Matcher<Integer>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowInt(columnName: String!, value: Int)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowInt(columnName: String!, valueMatcher: Matcher<Integer>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowInt(Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowLong(columnIndex: Int, value: Long)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowLong(columnIndex: Int, valueMatcher: Matcher<Long>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowLong(columnName: String!, value: Long)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowLong(columnName: String!, valueMatcher: Matcher<Long>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowLong(Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowShort(columnIndex: Int, value: Short)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowShort(columnIndex: Int, valueMatcher: Matcher<Short>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowShort(columnName: String!, value: Short)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowShort(columnName: String!, valueMatcher: Matcher<Short>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowShort(Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowString(columnIndex: Int, value: String!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowString(columnIndex: Int, valueMatcher: Matcher<String>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowString(columnName: String!, value: String!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowString(columnName: String!, valueMatcher: Matcher<String>!)Returns a matcher that matches a |
java-static CursorMatchers.CursorMatcher! |
withRowString(Returns a matcher that matches a |
java-static fun withRowBlob(columnIndex: Int, value: ByteArray!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a byte[] at a given column index in a Cursors data row.
java-static fun withRowBlob(columnIndex: Int, valueMatcher: Matcher<byte[]>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a byte[] at a given column index in a Cursors data row.
java-static fun withRowBlob(columnName: String!, value: ByteArray!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a byte[] at a given column index in a Cursors data row.
java-static fun withRowBlob(columnName: String!, valueMatcher: Matcher<byte[]>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a byte[] at a given column index in a Cursors data row.
java-static fun withRowBlob(columnPicker: Matcher<String>!, valueMatcher: Matcher<byte[]>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a byte[] at a given column index in a Cursors data row.
java-static fun withRowDouble(columnIndex: Int, value: Double): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Double value at a given column index in a Cursors data row.
java-static fun withRowDouble(columnIndex: Int, valueMatcher: Matcher<Double>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Double value at a given column index in a Cursors data row.
java-static fun withRowDouble(columnName: String!, value: Double): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Double value at a given column index in a Cursors data row.
java-static fun withRowDouble(columnName: String!, valueMatcher: Matcher<Double>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Double value at a given column index in a Cursors data row.
java-static fun withRowDouble(
columnNameMatcher: Matcher<String>!,
valueMatcher: Matcher<Double>!
): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Double value at a given column index in a Cursors data row.
java-static fun withRowFloat(columnIndex: Int, value: Float): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Float value at a given column index in a Cursors data row.
java-static fun withRowFloat(columnIndex: Int, valueMatcher: Matcher<Float>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Float value at a given column index in a Cursors data row.
java-static fun withRowFloat(columnName: String!, value: Float): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Float value at a given column index in a Cursors data row.
java-static fun withRowFloat(columnName: String!, valueMatcher: Matcher<Float>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Float value at a given column index in a Cursors data row.
java-static fun withRowFloat(
columnNameMatcher: Matcher<String>!,
valueMatcher: Matcher<Float>!
): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Float value at a given column index in a Cursors data row.
java-static fun withRowInt(columnIndex: Int, value: Int): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Integer value at a given column index in a Cursors data row.
java-static fun withRowInt(columnIndex: Int, valueMatcher: Matcher<Integer>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Integer value at a given column index in a Cursors data row.
java-static fun withRowInt(columnName: String!, value: Int): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Integer value at a given column index in a Cursors data row.
java-static fun withRowInt(columnName: String!, valueMatcher: Matcher<Integer>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Integer value at a given column index in a Cursors data row.
java-static fun withRowInt(
columnNameMatcher: Matcher<String>!,
valueMatcher: Matcher<Integer>!
): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Integer value at a given column index in a Cursors data row.
java-static fun withRowLong(columnIndex: Int, value: Long): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Long value at a given column index in a Cursors data row.
java-static fun withRowLong(columnIndex: Int, valueMatcher: Matcher<Long>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Long value at a given column index in a Cursors data row.
java-static fun withRowLong(columnName: String!, value: Long): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Long value at a given column index in a Cursors data row.
java-static fun withRowLong(columnName: String!, valueMatcher: Matcher<Long>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Long value at a given column index in a Cursors data row.
java-static fun withRowLong(
columnNameMatcher: Matcher<String>!,
valueMatcher: Matcher<Long>!
): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Long value at a given column index in a Cursors data row.
java-static fun withRowShort(columnIndex: Int, value: Short): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Short value at a given column index in a Cursors data row.
java-static fun withRowShort(columnIndex: Int, valueMatcher: Matcher<Short>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Short value at a given column index in a Cursors data row.
java-static fun withRowShort(columnName: String!, value: Short): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Short value at a given column index in a Cursors data row.
java-static fun withRowShort(columnName: String!, valueMatcher: Matcher<Short>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Short value at a given column index in a Cursors data row.
java-static fun withRowShort(
columnNameMatcher: Matcher<String>!,
valueMatcher: Matcher<Short>!
): CursorMatchers.CursorMatcher!
Returns a matcher that matches a Short value at a given column index in a Cursors data row.
java-static fun withRowString(columnIndex: Int, value: String!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a String value at a given column index in a Cursors data row.
java-static fun withRowString(columnIndex: Int, valueMatcher: Matcher<String>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a String value at a given column index in a Cursors data row.
java-static fun withRowString(columnName: String!, value: String!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a String value at a given column index in a Cursors data row.
java-static fun withRowString(columnName: String!, valueMatcher: Matcher<String>!): CursorMatchers.CursorMatcher!
Returns a matcher that matches a String value at a given column index in a Cursors data row.
java-static fun withRowString(
columnPicker: Matcher<String>!,
valueMatcher: Matcher<String>!
): CursorMatchers.CursorMatcher!
Returns a matcher that matches a String value at a given column index in a Cursors data row.