PreferenceMatchers


public final class PreferenceMatchers


A collection of hamcrest matchers that match Preferences.

Summary

Public methods

static Matcher<Preference>
static Matcher<Preference>
static Matcher<Preference>
withKey(Matcher<String> keyMatcher)
static Matcher<Preference>
withSummary(int resourceId)
static Matcher<Preference>
static Matcher<Preference>
withSummaryText(Matcher<String> summaryMatcher)
static Matcher<Preference>
withTitle(int resourceId)
static Matcher<Preference>
static Matcher<Preference>
withTitleText(Matcher<String> titleMatcher)

Public methods

isEnabled

public static Matcher<PreferenceisEnabled()

withKey

public static Matcher<PreferencewithKey(String key)

withKey

public static Matcher<PreferencewithKey(Matcher<String> keyMatcher)

withSummary

public static Matcher<PreferencewithSummary(int resourceId)

withSummaryText

public static Matcher<PreferencewithSummaryText(String summary)

withSummaryText

public static Matcher<PreferencewithSummaryText(Matcher<String> summaryMatcher)

withTitle

public static Matcher<PreferencewithTitle(int resourceId)

withTitleText

public static Matcher<PreferencewithTitleText(String title)

withTitleText

public static Matcher<PreferencewithTitleText(Matcher<String> titleMatcher)