Search in sources :

Example 6 with IssueTrackerCallbackInfo

use of com.synopsys.integration.alert.common.channel.issuetracker.message.IssueTrackerCallbackInfo 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);
}
Also used : IssueTrackerCallbackInfoCreator(com.synopsys.integration.alert.api.channel.issue.callback.IssueTrackerCallbackInfoCreator) IssueTrackerCallbackInfo(com.synopsys.integration.alert.common.channel.issuetracker.message.IssueTrackerCallbackInfo) ProjectIssueModel(com.synopsys.integration.alert.api.channel.issue.model.ProjectIssueModel) Test(org.junit.jupiter.api.Test)

Aggregations

IssueTrackerCallbackInfo (com.synopsys.integration.alert.common.channel.issuetracker.message.IssueTrackerCallbackInfo)6 ProjectIssueModel (com.synopsys.integration.alert.api.channel.issue.model.ProjectIssueModel)4 Test (org.junit.jupiter.api.Test)3 LinkableItem (com.synopsys.integration.alert.common.message.model.LinkableItem)2 IssueTrackerCallbackInfoCreator (com.synopsys.integration.alert.api.channel.issue.callback.IssueTrackerCallbackInfoCreator)1 IssueBomComponentDetails (com.synopsys.integration.alert.api.channel.issue.model.IssueBomComponentDetails)1 IssueTrackerIssueResponseModel (com.synopsys.integration.alert.api.channel.issue.model.IssueTrackerIssueResponseModel)1 ProviderDetails (com.synopsys.integration.alert.processor.api.extract.model.ProviderDetails)1 BlackDuckApiClient (com.synopsys.integration.blackduck.service.BlackDuckApiClient)1 BlackDuckServicesFactory (com.synopsys.integration.blackduck.service.BlackDuckServicesFactory)1 IssueService (com.synopsys.integration.blackduck.service.dataservice.IssueService)1