@Test public void getProfileId() { mockServer.expect(requestTo("https: .andExpect(header("Authorization", "Bearer ACCESS_TOKEN")) .andRespond(withSuccess(new ClassPathResource("profile.json", getClass()), MediaType.APPLICATION_JSON)); assertEquals("habuma", gitHub.userOperations().getProfileId()); }
public String getProfileId() { return getUserProfile().getLogin(); }
UserTemplate extends AbstractGitHubOperations implements UserOperations { public String getProfileId() { return getUserProfile().getLogin(); } }
UserTemplate extends AbstractGitHubOperations implements UserOperations { public String getProfileId() { return getUserProfile().getLogin(); } UserTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); }
UserTemplate extends AbstractGitHubOperations implements UserOperations { public String getProfileId() { return getUserProfile().getLogin(); } UserTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); List<GitHubUser> getFollowers(String user); List<GitHubUser> getFollowing(String user); String getProfileId(); GitHubUserProfile getUserProfile(); String getProfileUrl(); }
UserTemplate extends AbstractGitHubOperations implements UserOperations { public String getProfileId() { return getUserProfile().getLogin(); } UserTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); List<GitHubUser> getFollowers(String user); List<GitHubUser> getFollowing(String user); String getProfileId(); GitHubUserProfile getUserProfile(); String getProfileUrl();  }