Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2016 10:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
public void testTapGalleryButtonAndReturnCancel() {
// Build a result to return when the activity is launched.
Intent resultData = new Intent();
Instrumentation.ActivityResult result =
new Instrumentation.ActivityResult(Activity.RESULT_CANCELED, resultData);
// Set up result stubbing when an intent sent to "choose photo" is seen.
// Check image processor is not reset.
verify(imageProcessor, never()).resetOriginalImage();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment