#134 - Add fixture values for tests.

We now specify test properties for Jira and GitHub integrations to prevent a fallback to values from application-local.properties.
This commit is contained in:
Mark Paluch
2019-12-04 10:52:41 +01:00
parent 5e0187d9c3
commit d2bbaf77a4
2 changed files with 8 additions and 3 deletions

View File

@@ -228,7 +228,7 @@ public class GitHubIssueTrackerIntegrationTests extends AbstractIntegrationTests
github.assignReleaseTicketToMe(BUILD_HOPPER_RC1);
verify(patchRequestedFor(urlPathMatching(RELEASE_TICKET_URI))
.withRequestBody(equalToJson("{\"assignees\":[\"mp911de\"]}")));
.withRequestBody(equalToJson("{\"assignees\":[\"dummy\"]}")));
}
/**
@@ -249,7 +249,7 @@ public class GitHubIssueTrackerIntegrationTests extends AbstractIntegrationTests
github.closeIteration(BUILD_HOPPER_RC1);
verify(patchRequestedFor(urlPathMatching(RELEASE_TICKET_URI))
.withRequestBody(equalToJson("{\"state\":\"closed\",\"assignees\":[\"mp911de\"]}")));
.withRequestBody(equalToJson("{\"state\":\"closed\",\"assignees\":[\"dummy\"]}")));
}
private void mockGetIssueWith(String fromClassPath, int issueId) {