Skip to content

Instantly share code, notes, and snippets.

@rsicarelli
Created November 7, 2016 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rsicarelli/b6da09bc85310c1e53f987e23ba4a664 to your computer and use it in GitHub Desktop.
Save rsicarelli/b6da09bc85310c1e53f987e23ba4a664 to your computer and use it in GitHub Desktop.
@Test
public void shouldSelectImageOnCamera() {
Instrumentation.ActivityResult result = new Instrumentation.ActivityResult(Activity.RESULT_OK, data);
intending(hasAction(MediaStore.ACTION_IMAGE_CAPTURE)).respondWith(result);
onView(withId(R.id.camera)).perform(click());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment