Skip to content

Instantly share code, notes, and snippets.

@wingyplus
Created September 30, 2016 04:59
Show Gist options
  • Save wingyplus/01f68e974003c556d09e4c8895439352 to your computer and use it in GitHub Desktop.
Save wingyplus/01f68e974003c556d09e4c8895439352 to your computer and use it in GitHub Desktop.
@Test
public void getSingleUserWithSynchronousMethod() throws IOException {
User wingyplus = userService
.getSingleUser("wingyplus")
.execute()
.body();
assertThat(wingyplus.getLogin(), is("wingyplus"));
assertThat(wingyplus.getId(), is(484530));
assertThat(wingyplus.getPublicRepos(), is(197));
assertThat(wingyplus.getPublicGists(), is(216));
assertThat(wingyplus.getAvatarUrl(), is("https://avatars.githubusercontent.com/u/484530?v=3"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment