HasBackgroundMatcher

public final class HasBackgroundMatcher
extends TypeSafeMatcher<View>

java.lang.Object
   ↳ org.hamcrest.BaseMatcher<android.view.View>
     ↳ org.hamcrest.TypeSafeMatcher<android.view.View>
       ↳ androidx.test.espresso.matcher.HasBackgroundMatcher


Matcher to match View based on its background resource.

This API is currently in beta.

Summary

Public constructors

HasBackgroundMatcher(int drawableId)

Public methods

void describeTo(Description description)

Protected methods

boolean matchesSafely(View view)

Inherited methods

Public constructors

HasBackgroundMatcher

public HasBackgroundMatcher (int drawableId)

Parameters
drawableId int

Public methods

describeTo

public void describeTo (Description description)

Parameters
description Description

Protected methods

matchesSafely

protected boolean matchesSafely (View view)

Parameters
view View

Returns
boolean