Skip to content

Instantly share code, notes, and snippets.

@heitorcolangelo
Created August 12, 2016 01:41
Show Gist options
  • Save heitorcolangelo/9383071e13456e87c0b9750d4a7c36f0 to your computer and use it in GitHub Desktop.
Save heitorcolangelo/9383071e13456e87c0b9750d4a7c36f0 to your computer and use it in GitHub Desktop.
MainActivityTest - recycler view item layout CORRECT
@Test
public void checkUserItemView_isDisplayed() {
server.enqueue(new MockResponse().setResponseCode(200).setBody(Mocks.SUCCESS_SINGLE_ITEM));
mActivityRule.launchActivity(new Intent());
onView(withId(R.id.user_view_image)).check(matches(isDisplayed()));
onView(withId(R.id.user_view_name)).check(matches(isDisplayed()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment