Stay organized with collections Save and categorize content based on your preferences.

PreferenceMatchers

public final class PreferenceMatchers


A collection of hamcrest matchers that match Preferences.

Summary

Public constructors

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 constructors

PreferenceMatchers

public PreferenceMatchers()

Public methods

isEnabled

public static Matcher<Preference> isEnabled()

withKey

public static Matcher<Preference> withKey(String key)

withKey

public static Matcher<Preference> withKey(Matcher<String> keyMatcher)

withSummary

public static Matcher<Preference> withSummary(int resourceId)

withSummaryText

public static Matcher<Preference> withSummaryText(String summary)

withSummaryText

public static Matcher<Preference> withSummaryText(Matcher<String> summaryMatcher)

withTitle

public static Matcher<Preference> withTitle(int resourceId)

withTitleText

public static Matcher<Preference> withTitleText(String title)

withTitleText

public static Matcher<Preference> withTitleText(Matcher<String> titleMatcher)