Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

CursorMatchers.CursorMatcher

public static class CursorMatchers.CursorMatcher
extends BoundedMatcher<ObjectCursor>

java.lang.Object
   ↳ org.hamcrest.BaseMatcher<java.lang.Object>
     ↳ androidx.test.espresso.matcher.BoundedMatcher<java.lang.Objectandroid.database.Cursor>
       ↳ androidx.test.espresso.matcher.CursorMatchers.CursorMatcher


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

Summary

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 IllegalArgumentException if the column name/count is not valid.

Inherited methods

From class androidx.test.espresso.matcher.BoundedMatcher
From class org.hamcrest.BaseMatcher
From class java.lang.Object
From interface org.hamcrest.Matcher
From interface org.hamcrest.SelfDescribing

Public methods

describeTo

void describeTo (Description description)

Parameters
description Description

matchesSafely

boolean matchesSafely (Cursor cursor)

Parameters
cursor Cursor

Returns
boolean

withStrictColumnChecks

CursorMatchers.CursorMatcher withStrictColumnChecks (boolean checkColumns)

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

Parameters
checkColumns boolean

Returns
CursorMatchers.CursorMatcher