[BUILD-617] Test the ChangelogService Created: 21/Dec/21 Updated: 27/Oct/22 |
|
| Status: | Open |
| Project: | Build |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Maxime Michel | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Epic Link: | Release automation |
| Team: |
| Description |
|
For instance:
@Test
void isInChangelogGroup() throws Exception {
// GIVEN
String jql = IOUtils.toString(getClass().getResourceAsStream("/jql.txt"), StandardCharsets.UTF_8); // real world changelog example
String snapshotVersion = "6.2.12-SNAPSHOT";
// WHEN - THEN
assertTrue(jiraService.isInChangelogGroup(jql, "MGNLCE", snapshotVersion));
assertTrue(jiraService.isInChangelogGroup(jql, "MGNLEE", snapshotVersion));
assertTrue(jiraService.isInChangelogGroup(jql, "MGNLUI", snapshotVersion));
}
|