BundleMatchers
Kotlin
|Java
public
final
class
BundleMatchers
extends Object
| java.lang.Object | |
| ↳ | androidx.test.espresso.intent.matcher.BundleMatchers |
A collection of hamcrest matchers to match Bundle objects.
Summary
Public methods | |
|---|---|
static
Matcher<Bundle>
|
hasEntry(String key, Matcher<?> valueMatcher)
|
static
<T>
Matcher<Bundle>
|
hasEntry(String key, T value)
|
static
Matcher<Bundle>
|
hasEntry(Matcher<String> keyMatcher, Matcher<?> valueMatcher)
|
static
Matcher<Bundle>
|
hasKey(String key)
|
static
Matcher<Bundle>
|
hasKey(Matcher<String> keyMatcher)
|
static
<T>
Matcher<Bundle>
|
hasValue(T value)
|
static
Matcher<Bundle>
|
hasValue(Matcher<?> valueMatcher)
|
Inherited methods | |
|---|---|
java.lang.Object
| |
Public methods
hasEntry
Matcher<Bundle> hasEntry (String key, Matcher<?> valueMatcher)
| Parameters | |
|---|---|
key |
String |
valueMatcher |
Matcher |
| Returns | |
|---|---|
Matcher<Bundle> |
|
hasEntry
Matcher<Bundle> hasEntry (String key, T value)
| Parameters | |
|---|---|
key |
String |
value |
T |
| Returns | |
|---|---|
Matcher<Bundle> |
|
hasEntry
Matcher<Bundle> hasEntry (Matcher<String> keyMatcher, Matcher<?> valueMatcher)
| Parameters | |
|---|---|
keyMatcher |
Matcher |
valueMatcher |
Matcher |
| Returns | |
|---|---|
Matcher<Bundle> |
|
hasKey
Matcher<Bundle> hasKey (Matcher<String> keyMatcher)
| Parameters | |
|---|---|
keyMatcher |
Matcher |
| Returns | |
|---|---|
Matcher<Bundle> |
|

