public final class

ActivityResultMatchers

extends Object
java.lang.Object
   ↳ android.support.test.espresso.contrib.ActivityResultMatchers

Class Overview

Hamcrest matchers for a Instrumentation.ActivityResult.

Summary

Public Methods
static Matcher<? super Instrumentation.ActivityResult> hasResultCode(int resultCode)
Returns a matcher that verifies that the resultCode of a given Instrumentation.ActivityResult matches the given code
static 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
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static 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>

public static 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>