ActivityResultMatchers
public
final
class
ActivityResultMatchers
extends Object
java.lang.Object | |
↳ | androidx.test.espresso.contrib.ActivityResultMatchers |
Hamcrest matchers for a Instrumentation.ActivityResult
.
Summary
Public methods | |
---|---|
static
Matcher<? super Instrumentation.ActivityResult>
|
hasResultCode(int resultCode)
Returns a matcher that verifies that the |
static
Matcher<? super Instrumentation.ActivityResult>
|
hasResultData(Matcher<Intent> intentMatcher)
Returns a matcher that verifies that the resultData of a given |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Public methods
hasResultCode
Matcher<? super Instrumentation.ActivityResult> hasResultCode (int resultCode)
Returns a matcher that verifies that the resultCode
of a given Instrumentation.ActivityResult
matches the given code
Parameters | |
---|---|
resultCode |
int |
Returns | |
---|---|
Matcher<? super Instrumentation.ActivityResult> |
hasResultData
Matcher<? super Instrumentation.ActivityResult> hasResultData (Matcher<Intent> intentMatcher)
Returns a matcher that verifies that the resultData of a given Instrumentation.ActivityResult
matches
the given specification by the intentMatcher
Parameters | |
---|---|
intentMatcher |
Matcher |
Returns | |
---|---|
Matcher<? super Instrumentation.ActivityResult> |