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

Class Overview

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)
[Expand]
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 Constructors

public HasBackgroundMatcher (int drawableId)

Parameters
drawableId int

Public Methods

public void describeTo (Description description)

Parameters
description Description

Protected Methods

protected boolean matchesSafely (View view)

Parameters
view View
Returns
boolean