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

BundleMatchers

public final class BundleMatchers


A collection of hamcrest matchers to match Bundle objects.

Summary

Public constructors

Public methods

static Matcher<Bundle>
static Matcher<Bundle>
doesNotHaveKey(Matcher<String> keyMatcher)
static Matcher<Bundle>
<T> hasEntry(String key, T value)
static Matcher<Bundle>
hasEntry(String key, Matcher<?> valueMatcher)
static Matcher<Bundle>
hasEntry(Matcher<String> keyMatcher, Matcher<?> valueMatcher)
static Matcher<Bundle>
static Matcher<Bundle>
hasKey(Matcher<String> keyMatcher)
static Matcher<Bundle>
<T> hasValue(T value)
static Matcher<Bundle>
hasValue(Matcher<?> valueMatcher)
static Matcher<Bundle>
static Matcher<Bundle>

Public constructors

BundleMatchers

public BundleMatchers()

Public methods

doesNotHaveKey

public static Matcher<Bundle> doesNotHaveKey(String key)

doesNotHaveKey

public static Matcher<Bundle> doesNotHaveKey(Matcher<String> keyMatcher)

hasEntry

public static Matcher<Bundle> <T> hasEntry(String key, T value)

hasEntry

public static Matcher<Bundle> hasEntry(String key, Matcher<?> valueMatcher)

hasEntry

public static Matcher<Bundle> hasEntry(Matcher<String> keyMatcher, Matcher<?> valueMatcher)

hasKey

public static Matcher<Bundle> hasKey(String key)

hasKey

public static Matcher<Bundle> hasKey(Matcher<String> keyMatcher)

hasValue

public static Matcher<Bundle> <T> hasValue(T value)

hasValue

public static Matcher<Bundle> hasValue(Matcher<?> valueMatcher)

isEmpty

public static Matcher<Bundle> isEmpty()

isEmptyOrNull

public static Matcher<Bundle> isEmptyOrNull()