java.lang.Object | |
↳ | android.support.test.espresso.intent.matcher.IntentMatchers |
A collection of hamcrest matchers for matching Intent
objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a matcher that will only match intents targeted to the componentName's class,
.
| |||||||||||
Can match an intent by class name, package name or short class name.
| |||||||||||
Returns a matcher that will only match intents targeted to a single class by using
hasClassName(String) .
| |||||||||||
Matches an intent if its package is the same as the target package for the instrumentation
test.
| |||||||||||
Matches an intent based on the package of activity which can handle the intent.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns a matcher that will only match intents targeted to the componentName's class, . For example: Intent intent = new Intent() .setComponentName(new ComponentName("com.google.provider", "com.google.provider.Notepad")); will match all intents targeted to Notepad.java.
componentName | a componentName that has the target class specified |
---|
Can match an intent by class name, package name or short class name.
componentMatcher | can be the value of hasClassName(String) ,
hasPackageName(String) or
hasShortClassName(String)
|
---|
Returns a matcher that will only match intents targeted to a single class by using
hasClassName(String)
. The input string must contain the package name +
short class name. For example hasComponent("com.google.provider.NotePad").
className | complete class path |
---|
Matches an intent if its package is the same as the target package for the instrumentation test.
Matches an intent based on the package of activity which can handle the intent.
packageName | packages of activity that can handle the intent |
---|