@Test public void getGistComment() { responseHeaders.setContentType(MediaType.APPLICATION_JSON); mockServer.expect(requestTo("https: .andExpect(method(GET)) .andRespond(withSuccess(jsonResource("gist-comment"), MediaType.APPLICATION_JSON)); GitHubComment comment = gitHub.gistOperations().getGistComment(77557L); verifyComment(comment); }
public GitHubComment getGistComment(Long id) { return restTemplate.getForObject(buildUri("gists/comments/{id}"), GitHubComment.class, id); }
GistTemplate extends AbstractGitHubOperations implements GistOperations { public GitHubComment getGistComment(Long id) { return restTemplate.getForObject(buildUri("gists/comments/{id}"), GitHubComment.class, id); } }
GistTemplate extends AbstractGitHubOperations implements GistOperations { public GitHubComment getGistComment(Long id) { return restTemplate.getForObject(buildUri("gists/comments/{id}"), GitHubComment.class, id); } GistTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); }
GistTemplate extends AbstractGitHubOperations implements GistOperations { public GitHubComment getGistComment(Long id) { return restTemplate.getForObject(buildUri("gists/comments/{id}"), GitHubComment.class, id); } GistTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); List<GitHubGist> getUserGists(String user); List<GitHubGist> getGists(); List<GitHubGist> getPublicGists(); List<GitHubGist> getStarredGists(); GitHubGist getGist(String id); List<GitHubComment> getGistComments(String id); GitHubComment getGistComment(Long id); }
GistTemplate extends AbstractGitHubOperations implements GistOperations { public GitHubComment getGistComment(Long id) { return restTemplate.getForObject(buildUri("gists/comments/{id}"), GitHubComment.class, id); } GistTemplate(RestTemplate restTemplate, boolean isAuthorizedForUser); List<GitHubGist> getUserGists(String user); List<GitHubGist> getGists(); List<GitHubGist> getPublicGists(); List<GitHubGist> getStarredGists(); GitHubGist getGist(String id); List<GitHubComment> getGistComments(String id); GitHubComment getGistComment(Long id);  }