DataInteraction.DisplayDataMatcher

public static final class DataInteraction.DisplayDataMatcher
extends TypeSafeMatcher<View>

java.lang.Object
   ↳ org.hamcrest.BaseMatcher<android.view.View>
     ↳ org.hamcrest.TypeSafeMatcher<android.view.View>
       ↳ android.support.test.espresso.DataInteraction.DisplayDataMatcher


Internal matcher that is required for onData(Matcher).

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

Summary

Public methods

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

Returns an instance of DataInteraction.DisplayDataMatcher.

boolean matchesSafely(View view)

Inherited methods

From class org.hamcrest.TypeSafeMatcher
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

displayDataMatcher

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

Returns an instance of DataInteraction.DisplayDataMatcher.

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

Parameters
adapterMatcher Matcher: matcher that matches an AdapterView

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

rootMatcher Matcher

atPosition EspressoOptional

adapterViewProtocol AdapterViewProtocol: the AdapterViewProtocol used for this data interaction

Returns
DataInteraction.DisplayDataMatcher

matchesSafely

boolean matchesSafely (View view)

Parameters
view View

Returns
boolean