@Test public void getRecentCommitsNoCommit() { expectJson("https: "github/no-commit.json"); List<Commit> latestCommit = this.githubClient.getRecentCommits("spring-projects", "spring-boot"); assertThat(latestCommit).hasSize(0); 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);  }