PreferenceMatchers
public final class PreferenceMatchers
extends Object
java.lang.Object |
↳ |
android.support.test.espresso.matcher.PreferenceMatchers |
与 Preference
s匹配的一组hamcrest Preference
。
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
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() |
|
Public methods
isEnabled
Matcher<Preference> isEnabled ()
Returns |
Matcher<Preference> |
|
withKey
Matcher<Preference> withKey (Matcher<String> keyMatcher)
Parameters |
keyMatcher |
Matcher
|
Returns |
Matcher<Preference> |
|
withKey
Matcher<Preference> withKey (String key)
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)
Returns |
Matcher<Preference> |
|
withTitleText
Matcher<Preference> withTitleText (Matcher<String> titleMatcher)
Parameters |
titleMatcher |
Matcher
|
Returns |
Matcher<Preference> |
|