Summary:
Methods
| Inherited Methods
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)
|
static
Matcher<Bundle>
|
isEmpty()
|
static
Matcher<Bundle>
|
isEmptyOrNull()
|
Inherited methods | |
---|---|
Public methods
hasEntry
public static Matcher<Bundle> hasEntry (String key, Matcher<?> valueMatcher)
Parameters | |
---|---|
key |
String |
valueMatcher |
Matcher |
Returns | |
---|---|
Matcher<Bundle> |
hasEntry
public static Matcher<Bundle> hasEntry (String key, T value)
Parameters | |
---|---|
key |
String |
value |
T |
Returns | |
---|---|
Matcher<Bundle> |
hasEntry
public static Matcher<Bundle> hasEntry (Matcher<String> keyMatcher, Matcher<?> valueMatcher)
Parameters | |
---|---|
keyMatcher |
Matcher |
valueMatcher |
Matcher |
Returns | |
---|---|
Matcher<Bundle> |
hasKey
public static Matcher<Bundle> hasKey (String key)
Parameters | |
---|---|
key |
String |
Returns | |
---|---|
Matcher<Bundle> |
hasKey
public static Matcher<Bundle> hasKey (Matcher<String> keyMatcher)
Parameters | |
---|---|
keyMatcher |
Matcher |
Returns | |
---|---|
Matcher<Bundle> |
hasValue
public static Matcher<Bundle> hasValue (T value)
Parameters | |
---|---|
value |
T |
Returns | |
---|---|
Matcher<Bundle> |