HasBackgroundMatcher
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
public
final
class
HasBackgroundMatcher
extends TypeSafeMatcher<View >
Matcher to match View
based on its background resource.
This API is currently in beta.
Summary
Public methods
void
describeTo (Description description)
Inherited methods
From
class
org.hamcrest.TypeSafeMatcher
final
void
describeMismatch(Object arg0, Description arg1)
void
describeMismatchSafely(View arg0, Description arg1)
final
boolean
matches(Object arg0)
abstract
boolean
matchesSafely(View arg0)
From
class
org.hamcrest.BaseMatcher
final
void
_dont_implement_Matcher___instead_extend_BaseMatcher_()
void
describeMismatch(Object arg0, Description arg1)
String
toString()
From
class
java.lang.Object
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final
Class <?>
getClass()
int
hashCode()
final
void
notify()
final
void
notifyAll()
String
toString()
final
void
wait(long arg0, int arg1)
final
void
wait(long arg0)
final
void
wait()
From
interface
org.hamcrest.Matcher
abstract
void
_dont_implement_Matcher___instead_extend_BaseMatcher_()
abstract
void
describeMismatch(Object arg0, Description arg1)
abstract
boolean
matches(Object arg0)
From
interface
org.hamcrest.SelfDescribing
abstract
void
describeTo(Description arg0)
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)