Skip to content

Most visited

Recently visited

navigation

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, Optional<Integer> atPosition, AdapterViewProtocol adapterViewProtocol)

Returns an instance of DataInteraction.DisplayDataMatcher.

static void init(RemoteDescriptorRegistry remoteDescriptorRegistry)

Registers this matcher with the RemoteDescriptorRegistry.

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, 
                Optional<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 Optional

adapterViewProtocol AdapterViewProtocol: the AdapterViewProtocol used for this data interaction

Returns
DataInteraction.DisplayDataMatcher

init

void init (RemoteDescriptorRegistry remoteDescriptorRegistry)

Registers this matcher with the RemoteDescriptorRegistry.

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

Parameters
remoteDescriptorRegistry RemoteDescriptorRegistry: the remoteDescriptorRegistry passed in from espresso remote

matchesSafely

boolean matchesSafely (View view)

Parameters
view View

Returns
boolean

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)