Fixed
Status Update
Comments
fr...@gmail.com <fr...@gmail.com> #3
Maybe getActivityResult can be hidden in ActivityResultMatchers and add something like
ActivityResultMatchers.activityFinishedWith(Activity, Matchers<ActivityResult>)
ActivityResultMatchers.activityFinishedWith(Activity, Matchers<ActivityResult>)
Description
getResultData returns the ActivityResult of an activity that has finished.
ActivityResultMatcher provides matchers to verify the resultCode and the resultData of the activityResult.
Possible implementation is published here:
The matchers should go into package android.support.test.espresso.contrib;
Use case:
The user clicks on a button of an activity A that picks a content item, then the activity returns this item as the activity result usually in onActivityResult of the parent activity P.
To simplify testing the activity result should be tested within the test of activity A