PreferenceMatchers
public
final
class
PreferenceMatchers
extends Object
java.lang.Object | |
↳ | android.support.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 | |
---|---|
From
class
java.lang.Object
|
Public methods
withKey
Matcher<Preference> withKey (Matcher<String> keyMatcher)
Parameters | |
---|---|
keyMatcher |
Matcher |
Returns | |
---|---|
Matcher<Preference> |
withSummary
Matcher<Preference> withSummary (int resourceId)
Parameters | |
---|---|
resourceId |
int |
Returns | |
---|---|
Matcher<Preference> |
withSummaryText
Matcher<Preference> withSummaryText (Matcher<String> summaryMatcher)
Parameters | |
---|---|
summaryMatcher |
Matcher |
Returns | |
---|---|
Matcher<Preference> |
withSummaryText
Matcher<Preference> withSummaryText (String summary)
Parameters | |
---|---|
summary |
String |
Returns | |
---|---|
Matcher<Preference> |
withTitle
Matcher<Preference> withTitle (int resourceId)
Parameters | |
---|---|
resourceId |
int |
Returns | |
---|---|
Matcher<Preference> |
withTitleText
Matcher<Preference> withTitleText (String title)
Parameters | |
---|---|
title |
String |
Returns | |
---|---|
Matcher<Preference> |
withTitleText
Matcher<Preference> withTitleText (Matcher<String> titleMatcher)
Parameters | |
---|---|
titleMatcher |
Matcher |
Returns | |
---|---|
Matcher<Preference> |