@Test public void test_changelog() throws Exception { IssueChangelog changelog = new IssueChangelog(Collections.<FieldDiffs>emptyList(), Collections.<User>emptyList()); when(changelogService.changelog(eq("ABCDE"), any(UserSession.class))).thenReturn(changelog); IssueChangelog result = service.changelog("ABCDE"); assertThat(result).isSameAs(changelog); }
public List<String> formatChangelog(FieldDiffs diffs) { return changelogService.formatDiffs(diffs); }
public IssueChangelog changelog(Issue issue) { return changelogService.changelog(issue); }
public IssueChangelog changelog(String issueKey) { return changelogService.changelog(issueKey); }