use of com.synopsys.integration.alert.common.channel.issuetracker.enumeration.IssueOperation in project hub-alert by blackducksoftware.
the class IssueTrackerIssueResponseCreatorTest method runTest.
private void runTest(@Nullable ProjectIssueModel source, IssueTrackerCallbackInfoCreator callbackInfoCreator) {
IssueOperation testOperation = IssueOperation.OPEN;
IssueTrackerIssueResponseCreator responseCreator = new IssueTrackerIssueResponseCreator(callbackInfoCreator);
IssueTrackerIssueResponseModel<String> issueResponse = responseCreator.createIssueResponse(source, EXISTING_ISSUE_DETAILS, testOperation);
assertEquals(EXISTING_ISSUE_DETAILS.getIssueId(), issueResponse.getIssueId());
assertEquals(EXISTING_ISSUE_DETAILS.getIssueKey(), issueResponse.getIssueKey());
assertEquals(EXISTING_ISSUE_DETAILS.getIssueSummary(), issueResponse.getIssueTitle());
assertEquals(testOperation, issueResponse.getIssueOperation());
}
Aggregations