{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public final class BundleMatchers
A collection of hamcrest matchers to match Bundle objects.
Public constructors |
|
|---|---|
Public methods |
|
|---|---|
static Matcher<Bundle> |
doesNotHaveKey(String key) |
static Matcher<Bundle> |
doesNotHaveKey(Matcher<String> keyMatcher) |
static Matcher<Bundle> |
|
static Matcher<Bundle> |
|
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> |
isEmpty() |
static Matcher<Bundle> |
|
public static Matcher<Bundle> hasEntry(Matcher<String> keyMatcher, Matcher<?> valueMatcher)