ActivityResultMatchers


public final class ActivityResultMatchers


Hamcrest matchers for a ActivityResult.

Summary

Public methods

static Matcher<Instrumentation.ActivityResult>
hasResultCode(int resultCode)

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

static Matcher<Instrumentation.ActivityResult>
hasResultData(Matcher<Intent> intentMatcher)

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

Public methods

hasResultCode

public static Matcher<Instrumentation.ActivityResulthasResultCode(int resultCode)

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

hasResultData

public static Matcher<Instrumentation.ActivityResulthasResultData(Matcher<Intent> intentMatcher)

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