Created
November 7, 2016 13:18
-
-
Save rsicarelli/b6da09bc85310c1e53f987e23ba4a664 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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