Stay organized with collections Save and categorize content based on your preferences.

DataInteraction.DisplayDataMatcher

public final class DataInteraction.DisplayDataMatcher


Internal matcher that is required for Espresso#onData(Matcher).

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

Summary

Public constructors

Public methods

void
describeTo(Description description)
static DataInteraction.DisplayDataMatcher
displayDataMatcher(
    Matcher<View> adapterMatcher,
    Matcher<?> dataMatcher,
    Matcher<Root> rootMatcher,
    EspressoOptional<Integer> atPosition,
    AdapterViewProtocol adapterViewProtocol
)

Returns an instance of DisplayDataMatcher.

boolean
matchesSafely(View view)

Public constructors

DisplayDataMatcher

public DisplayDataMatcher()

Public methods

describeTo

public void describeTo(Description description)

displayDataMatcher

public static DataInteraction.DisplayDataMatcher displayDataMatcher(
    Matcher<View> adapterMatcher,
    Matcher<?> dataMatcher,
    Matcher<Root> rootMatcher,
    EspressoOptional<Integer> atPosition,
    AdapterViewProtocol adapterViewProtocol
)

Returns an instance of DisplayDataMatcher.

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

Parameters
Matcher<View> adapterMatcher

matcher that matches an AdapterView

Matcher<?> dataMatcher

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

AdapterViewProtocol adapterViewProtocol

the AdapterViewProtocol used for this data interaction

matchesSafely

public boolean matchesSafely(View view)