use of com.synopsys.integration.alert.api.channel.issue.model.ProjectIssueModel in project hub-alert by blackducksoftware.
the class IssueTrackerIssueResponseCreatorTest method createIssueResponseWithCallbackInfoTest.
@Test
public void createIssueResponseWithCallbackInfoTest() {
IssueTrackerCallbackInfo callbackInfo = Mockito.mock(IssueTrackerCallbackInfo.class);
IssueTrackerCallbackInfoCreator callbackInfoCreator = Mockito.mock(IssueTrackerCallbackInfoCreator.class);
Mockito.when(callbackInfoCreator.createCallbackInfo(Mockito.any())).thenReturn(Optional.of(callbackInfo));
ProjectIssueModel source = Mockito.mock(ProjectIssueModel.class);
runTest(source, callbackInfoCreator);
}
use of com.synopsys.integration.alert.api.channel.issue.model.ProjectIssueModel in project hub-alert by blackducksoftware.
the class IssueTrackerIssueResponseCreatorTest method createIssueResponseTest.
@Test
public void createIssueResponseTest() {
IssueTrackerCallbackInfoCreator callbackInfoCreator = Mockito.mock(IssueTrackerCallbackInfoCreator.class);
Mockito.when(callbackInfoCreator.createCallbackInfo(Mockito.any())).thenReturn(Optional.empty());
ProjectIssueModel source = Mockito.mock(ProjectIssueModel.class);
runTest(source, callbackInfoCreator);
}
Aggregations