Search in sources :

Example 6 with IssueStatus

use of com.synopsys.integration.alert.api.channel.issue.search.enumeration.IssueStatus in project hub-alert by blackducksoftware.

the class JiraIssueStatusCreatorTest method createIssueStatusResolvableTest.

@Test
public void createIssueStatusResolvableTest() {
    // The transition is used instead of the issueKey which is normally used to get the transition states from Jira
    JiraSearcherResponseModel jiraSearcherResponseModel = new JiraSearcherResponseModel(null, resolveTransition, null, null);
    IssueStatus issueStatus = jiraIssueStatusCreator.createIssueStatus(jiraSearcherResponseModel, this::fetchIssueTransitions);
    assertEquals(IssueStatus.RESOLVABLE, issueStatus);
}
Also used : IssueStatus(com.synopsys.integration.alert.api.channel.issue.search.enumeration.IssueStatus) Test(org.junit.jupiter.api.Test)

Aggregations

IssueStatus (com.synopsys.integration.alert.api.channel.issue.search.enumeration.IssueStatus)6 Test (org.junit.jupiter.api.Test)4 ExistingIssueDetails (com.synopsys.integration.alert.api.channel.issue.search.ExistingIssueDetails)2 IssueCategory (com.synopsys.integration.alert.api.channel.issue.search.enumeration.IssueCategory)1