@Test public void getRecentCommits() { expectJson("https: "github/spring-framework-commits.json"); List<Commit> recentCommits = this.githubClient.getRecentCommits( "spring-projects", "spring-framework"); this.mockServer.verify(); assertThat(recentCommits).hasSize(5); assertCommit(recentCommits.get(0), "7737c3c", "Warn about non-static BeanDefinitionRegistryPostProcessor declarations on @Configuration classes", "2016-05-02T13:19:05Z", "jhoeller", "Juergen Hoeller", "https: assertCommit(recentCommits.get(3), "09b45d2", "Validate callback is always invoked in DMLC#stop", "2016-05-02T11:33:05Z", "snicoll", "Stephane Nicoll", "https: verify(this.counterService, times(1)).increment("cfp.github.requests"); }
@Cacheable("github.commits") public List<Commit> getRecentCommits(String organization, String project) { ResponseEntity<Commit[]> response = doGetRecentCommit(organization, project); return Arrays.asList(response.getBody()); }
GithubClient { @Cacheable("github.commits") public List<Commit> getRecentCommits(String organization, String project) { ResponseEntity<Commit[]> response = doGetRecentCommit(organization, project); return Arrays.asList(response.getBody()); } }
GithubClient { @Cacheable("github.commits") public List<Commit> getRecentCommits(String organization, String project) { ResponseEntity<Commit[]> response = doGetRecentCommit(organization, project); return Arrays.asList(response.getBody()); } GithubClient(CounterService counterService, RestTemplateBuilder restTemplateBuilder,
			CfpProperties properties); }
GithubClient { @Cacheable("github.commits") public List<Commit> getRecentCommits(String organization, String project) { ResponseEntity<Commit[]> response = doGetRecentCommit(organization, project); return Arrays.asList(response.getBody()); } GithubClient(CounterService counterService, RestTemplateBuilder restTemplateBuilder,
			CfpProperties properties); @Cacheable("github.commits") List<Commit> getRecentCommits(String organization, String project); @Cacheable("github.polishCommit") Commit getRecentPolishCommit(String organization, String project); @Cacheable("github.user") GithubUser getUser(String githubId); }
GithubClient { @Cacheable("github.commits") public List<Commit> getRecentCommits(String organization, String project) { ResponseEntity<Commit[]> response = doGetRecentCommit(organization, project); return Arrays.asList(response.getBody()); } GithubClient(CounterService counterService, RestTemplateBuilder restTemplateBuilder,
			CfpProperties properties); @Cacheable("github.commits") List<Commit> getRecentCommits(String organization, String project); @Cacheable("github.polishCommit") Commit getRecentPolishCommit(String organization, String project); @Cacheable("github.user") GithubUser getUser(String githubId);  }