HasBackgroundMatcher

public final class HasBackgroundMatcher
extends TypeSafeMatcher<View>

java.lang.Object
   ↳ org.hamcrest.BaseMatcher<android.view.View>
     ↳ org.hamcrest.TypeSafeMatcher<android.view.View>
       ↳ android.support.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

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

HasBackgroundMatcher

HasBackgroundMatcher (int drawableId)

Parameters
drawableId int

Public methods

describeTo

void describeTo (Description description)

Parameters
description Description

Protected methods

matchesSafely

boolean matchesSafely (View view)

Parameters
view View

Returns
boolean