@CheckReturnValue
public final class BundleMatchers


A collection of hamcrest matchers to match Bundle objects.

Summary

Public methods

static @NonNull Matcher<Bundle>
static @NonNull Matcher<Bundle>
static Matcher<Bundle>
hasEntry(Matcher<String> keyMatcher, Matcher<Object> valueMatcher)
static Matcher<Bundle>
<T> hasEntry(String key, T value)
static Matcher<Bundle>
hasEntry(String key, Matcher<Object> valueMatcher)
static Matcher<Bundle>
hasKey(Matcher<String> keyMatcher)
static Matcher<Bundle>
static Matcher<Bundle>
<T> hasValue(T value)
static Matcher<Bundle>
hasValue(Matcher<Object> valueMatcher)
static Matcher<Bundle>
static Matcher<Bundle>

Public methods

doesNotHaveKey

public static @NonNull Matcher<BundledoesNotHaveKey(@NonNull Matcher<String> keyMatcher)

doesNotHaveKey

public static @NonNull Matcher<BundledoesNotHaveKey(@NonNull String key)

hasEntry

public static Matcher<BundlehasEntry(Matcher<String> keyMatcher, Matcher<Object> valueMatcher)

hasEntry

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

hasEntry

public static Matcher<BundlehasEntry(String key, Matcher<Object> valueMatcher)

hasKey

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

hasKey

public static Matcher<BundlehasKey(String key)

hasValue

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

hasValue

public static Matcher<BundlehasValue(Matcher<Object> valueMatcher)

isEmpty

public static Matcher<BundleisEmpty()

isEmptyOrNull

public static Matcher<BundleisEmptyOrNull()