BundleMatchers
public final class BundleMatchers
extends Object
java.lang.Object |
↳ |
android.support.test.espresso.intent.matcher.BundleMatchers |
一系列Hamcrest匹配器匹配 Bundle
对象。
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
Object |
clone() |
boolean |
equals(Object arg0) |
void |
finalize() |
final Class<?> |
getClass() |
int |
hashCode() |
final void |
notify() |
final void |
notifyAll() |
String |
toString() |
final void |
wait(long arg0, int arg1) |
final void |
wait(long arg0) |
final void |
wait() |
|
Public methods
hasEntry
Matcher<Bundle> hasEntry (String key,
Matcher<?> valueMatcher)
Parameters |
key |
String
|
valueMatcher |
Matcher
|
hasEntry
Matcher<Bundle> hasEntry (String key,
T value)
Parameters |
key |
String
|
value |
T
|
hasEntry
Matcher<Bundle> hasEntry (Matcher<String> keyMatcher,
Matcher<?> valueMatcher)
Parameters |
keyMatcher |
Matcher
|
valueMatcher |
Matcher
|
hasKey
Matcher<Bundle> hasKey (String key)
hasKey
Matcher<Bundle> hasKey (Matcher<String> keyMatcher)
Parameters |
keyMatcher |
Matcher
|
hasValue
Matcher<Bundle> hasValue (T value)
hasValue
Matcher<Bundle> hasValue (Matcher<?> valueMatcher)
Parameters |
valueMatcher |
Matcher
|