Skip to content

Instantly share code, notes, and snippets.

@Egorand
Created July 17, 2016 12:03
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 Egorand/3032fd15214d8500e8b29bfd9fbb2795 to your computer and use it in GitHub Desktop.
Save Egorand/3032fd15214d8500e8b29bfd9fbb2795 to your computer and use it in GitHub Desktop.
android-testing-runtime-permissions-should-load-contacts
@Test
public void d_shouldLoadContactsIfPermissionWasGranted() throws Exception {
for (Contact contact : TEST_CONTACTS) {
onView(withText(contact.name)).check(matches(isDisplayed()));
onView(withText(contact.phoneNumber)).check(matches(isDisplayed()));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment