Skip to content

Instantly share code, notes, and snippets.

@andrzejchm
Last active June 29, 2016 12:20
Show Gist options
  • Save andrzejchm/de230d959a2b561ebf921339322c3fdb to your computer and use it in GitHub Desktop.
Save andrzejchm/de230d959a2b561ebf921339322c3fdb to your computer and use it in GitHub Desktop.
@Test
public void testGoodAnswer() throws Exception {
RESTMockServer.whenGET(RequestMatchers.pathEndsWith("users/andrzejchm")).thenReturnFile(
"users/andrzejchm.json");
//launches activity with default intent
rule.launchActivity(null);
pageObject.typeUsername("andrzejchm");
pageObject.pressOk();
pageObject.verifyWelcomeMessageForUser("Welcome Andrzej Chmielewski!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment