Summary:
Methods
| Inherited Methods
PreferenceMatchers
Kotlin
|Java
public
final
class
PreferenceMatchers
extends Object
java.lang.Object | |
↳ | androidx.test.espresso.matcher.PreferenceMatchers |
A collection of hamcrest matchers that match Preference
s.
Summary
Public methods | |
---|---|
static
Matcher<Preference>
|
isEnabled()
|
static
Matcher<Preference>
|
withKey(Matcher<String> keyMatcher)
|
static
Matcher<Preference>
|
withKey(String key)
|
static
Matcher<Preference>
|
withSummary(int resourceId)
|
static
Matcher<Preference>
|
withSummaryText(Matcher<String> summaryMatcher)
|
static
Matcher<Preference>
|
withSummaryText(String summary)
|
static
Matcher<Preference>
|
withTitle(int resourceId)
|
static
Matcher<Preference>
|
withTitleText(String title)
|
static
Matcher<Preference>
|
withTitleText(Matcher<String> titleMatcher)
|
Inherited methods | |
---|---|
Public methods
withKey
public static Matcher<Preference> withKey (Matcher<String> keyMatcher)
Parameters | |
---|---|
keyMatcher |
Matcher |
Returns | |
---|---|
Matcher<Preference> |
withKey
public static Matcher<Preference> withKey (String key)
Parameters | |
---|---|
key |
String |
Returns | |
---|---|
Matcher<Preference> |
withSummary
public static Matcher<Preference> withSummary (int resourceId)
Parameters | |
---|---|
resourceId |
int |
Returns | |
---|---|
Matcher<Preference> |
withSummaryText
public static Matcher<Preference> withSummaryText (Matcher<String> summaryMatcher)
Parameters | |
---|---|
summaryMatcher |
Matcher |
Returns | |
---|---|
Matcher<Preference> |
withSummaryText
public static Matcher<Preference> withSummaryText (String summary)
Parameters | |
---|---|
summary |
String |
Returns | |
---|---|
Matcher<Preference> |
withTitle
public static Matcher<Preference> withTitle (int resourceId)
Parameters | |
---|---|
resourceId |
int |
Returns | |
---|---|
Matcher<Preference> |
withTitleText
public static Matcher<Preference> withTitleText (String title)
Parameters | |
---|---|
title |
String |
Returns | |
---|---|
Matcher<Preference> |
withTitleText
public static Matcher<Preference> withTitleText (Matcher<String> titleMatcher)
Parameters | |
---|---|
titleMatcher |
Matcher |
Returns | |
---|---|
Matcher<Preference> |