ActivityResultMatchers


class ActivityResultMatchers


Hamcrest matchers for a ActivityResult.

Summary

Public functions

java-static Matcher<Instrumentation.ActivityResult!>!
hasResultCode(resultCode: Int)

Returns a matcher that verifies that the resultCode of a given ActivityResult matches the given code

java-static Matcher<Instrumentation.ActivityResult!>!
hasResultData(intentMatcher: Matcher<Intent!>!)

Returns a matcher that verifies that the resultData of a given ActivityResult matches the given specification by the intentMatcher

Public functions

hasResultCode

java-static fun hasResultCode(resultCode: Int): Matcher<Instrumentation.ActivityResult!>!

Returns a matcher that verifies that the resultCode of a given ActivityResult matches the given code

hasResultData

java-static fun hasResultData(intentMatcher: Matcher<Intent!>!): Matcher<Instrumentation.ActivityResult!>!

Returns a matcher that verifies that the resultData of a given ActivityResult matches the given specification by the intentMatcher