lightbulb_outline Please take our October 2018 developer survey. Start survey

BundleMatchers

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

From class 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 (String key)

Parameters
key String

Returns
Matcher<Bundle>

hasKey

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

Parameters
keyMatcher Matcher

Returns
Matcher<Bundle>

hasValue

Matcher<Bundle> hasValue (T value)

Parameters
value T

Returns
Matcher<Bundle>

hasValue

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

Parameters
valueMatcher Matcher

Returns
Matcher<Bundle>