Search in sources :

Example 1 with JiraCloudMessageSenderFactory

use of com.synopsys.integration.alert.channel.jira.cloud.distribution.JiraCloudMessageSenderFactory in project hub-alert by blackducksoftware.

the class JiraCloudSummaryFieldLengthTestIT method createJiraCloudMessageSender.

private static IssueTrackerMessageSender<String> createJiraCloudMessageSender() throws AlertException {
    TestProperties testProperties = new TestProperties();
    Gson gson = new GsonBuilder().create();
    IssueCategoryRetriever issueCategoryRetriever = new IssueCategoryRetriever();
    JiraCloudMessageSenderFactory jiraCloudMessageSenderFactory = new JiraCloudMessageSenderFactory(gson, ChannelKeys.JIRA_CLOUD, createJiraCloudPropertiesFactory(testProperties), new IssueTrackerCallbackInfoCreator(), issueCategoryRetriever);
    JiraCloudJobDetailsModel jiraCloudJobDetails = createJiraCloudJobDetails(testProperties);
    return jiraCloudMessageSenderFactory.createMessageSender(jiraCloudJobDetails);
}
Also used : TestProperties(com.synopsys.integration.alert.test.common.TestProperties) IssueTrackerCallbackInfoCreator(com.synopsys.integration.alert.api.channel.issue.callback.IssueTrackerCallbackInfoCreator) GsonBuilder(com.google.gson.GsonBuilder) Gson(com.google.gson.Gson) JiraCloudMessageSenderFactory(com.synopsys.integration.alert.channel.jira.cloud.distribution.JiraCloudMessageSenderFactory) JiraCloudJobDetailsModel(com.synopsys.integration.alert.common.persistence.model.job.details.JiraCloudJobDetailsModel) IssueCategoryRetriever(com.synopsys.integration.alert.api.channel.issue.search.IssueCategoryRetriever)

Aggregations

Gson (com.google.gson.Gson)1 GsonBuilder (com.google.gson.GsonBuilder)1 IssueTrackerCallbackInfoCreator (com.synopsys.integration.alert.api.channel.issue.callback.IssueTrackerCallbackInfoCreator)1 IssueCategoryRetriever (com.synopsys.integration.alert.api.channel.issue.search.IssueCategoryRetriever)1 JiraCloudMessageSenderFactory (com.synopsys.integration.alert.channel.jira.cloud.distribution.JiraCloudMessageSenderFactory)1 JiraCloudJobDetailsModel (com.synopsys.integration.alert.common.persistence.model.job.details.JiraCloudJobDetailsModel)1 TestProperties (com.synopsys.integration.alert.test.common.TestProperties)1