DataInteraction.DisplayDataMatcher


class DataInteraction.DisplayDataMatcher : TypeSafeMatcher


Internal matcher that is required for onData.

This matcher is only visible to support proto serialization. Do not use this matcher in any Espresso test code!

Summary

Public functions

Unit
describeTo(description: Description!)
java-static DataInteraction.DisplayDataMatcher!
displayDataMatcher(
    adapterMatcher: Matcher<View!>,
    dataMatcher: Matcher<Any!>,
    rootMatcher: Matcher<Root!>,
    atPosition: EspressoOptional<Int!>!,
    adapterViewProtocol: AdapterViewProtocol
)

This function is deprecated.

use displayDataMatcher instead.

java-static DataInteraction.DisplayDataMatcher!
displayDataMatcher(
    adapterMatcher: Matcher<View!>,
    dataMatcher: Matcher<Any!>,
    rootMatcher: Matcher<Root!>,
    atPosition: Int?,
    adapterViewProtocol: AdapterViewProtocol
)

Returns an instance of DisplayDataMatcher.

Boolean

Inherited functions

From org.hamcrest.BaseMatcher
From org.hamcrest.TypeSafeMatcher
Unit
describeMismatch(item: Any!, description: Description!)
Unit
describeMismatchSafely(item: T!, mismatchDescription: Description!)
Boolean
matches(item: Any!)

Public functions

describeTo

fun describeTo(description: Description!): Unit

displayDataMatcher

java-static fun displayDataMatcher(
    adapterMatcher: Matcher<View!>,
    dataMatcher: Matcher<Any!>,
    rootMatcher: Matcher<Root!>,
    atPosition: EspressoOptional<Int!>!,
    adapterViewProtocol: AdapterViewProtocol
): DataInteraction.DisplayDataMatcher!

Returns an instance of DisplayDataMatcher.

Note: This is an internal method, do not call from test code!

Parameters
adapterMatcher: Matcher<View!>

matcher that matches an AdapterView

dataMatcher: Matcher<Any!>

the data matcher for matching a View by it's adapter data

rootMatcher: Matcher<Root!>

matcher for view's root

atPosition: EspressoOptional<Int!>!

optional position of the view to match

adapterViewProtocol: AdapterViewProtocol

the AdapterViewProtocol used for this data interaction

displayDataMatcher

java-static fun displayDataMatcher(
    adapterMatcher: Matcher<View!>,
    dataMatcher: Matcher<Any!>,
    rootMatcher: Matcher<Root!>,
    atPosition: Int?,
    adapterViewProtocol: AdapterViewProtocol
): DataInteraction.DisplayDataMatcher!

Returns an instance of DisplayDataMatcher.

Note: This is an internal method, do not call from test code!

Parameters
adapterMatcher: Matcher<View!>

matcher that matches an AdapterView

dataMatcher: Matcher<Any!>

the data matcher for matching a View by it's adapter data

rootMatcher: Matcher<Root!>

matcher for view's root

atPosition: Int?

optional zero-based position of the data to be matched

adapterViewProtocol: AdapterViewProtocol

the AdapterViewProtocol used for this data interaction

matchesSafely

fun matchesSafely(view: View!): Boolean