use of com.checkmarx.flow.custom.ADOIssueTracker in project cx-flow by checkmarx-ltd.
the class IastCliSteps method checkHowManyCreateIssue.
@SneakyThrows
@Then("check how many create issue {} {}")
public void checkHowManyCreateIssue(String createIssue, String bugTracker) {
int createdIssues = Integer.parseInt(removeQuotes(createIssue));
IssueTracker issueTracker = null;
switch(bugTracker) {
case "jira":
verify(jiraService, times(createdIssues)).createIssue(any(), any());
return;
case "github":
issueTracker = gitHubIssueTracker;
break;
case "gitlab":
issueTracker = gitLabIssueTracker;
break;
case "ado":
issueTracker = adoIssueTracker;
break;
}
if (issueTracker != null) {
verify(issueTracker, times(createdIssues)).createIssue(any(), any());
}
}
Aggregations