Search in sources :

Example 6 with JiraCloudJobDetailsModel

use of com.synopsys.integration.alert.common.persistence.model.job.details.JiraCloudJobDetailsModel 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

JiraCloudJobDetailsModel (com.synopsys.integration.alert.common.persistence.model.job.details.JiraCloudJobDetailsModel)6 Test (org.junit.jupiter.api.Test)4 IssueCreationModel (com.synopsys.integration.alert.api.channel.issue.model.IssueCreationModel)2 MessageReplacementValues (com.synopsys.integration.alert.api.channel.jira.distribution.custom.MessageReplacementValues)2 DistributionJobRequestModel (com.synopsys.integration.alert.common.persistence.model.job.DistributionJobRequestModel)2 JiraCloudJobDetailsEntity (com.synopsys.integration.alert.database.job.jira.cloud.JiraCloudJobDetailsEntity)2 IssueRequestModelFieldsBuilder (com.synopsys.integration.jira.common.cloud.builder.IssueRequestModelFieldsBuilder)2 IssueCreationRequestModel (com.synopsys.integration.jira.common.cloud.model.IssueCreationRequestModel)2 UUID (java.util.UUID)2 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 DistributionJobModel (com.synopsys.integration.alert.common.persistence.model.job.DistributionJobModel)1 AzureBoardsJobDetailsModel (com.synopsys.integration.alert.common.persistence.model.job.details.AzureBoardsJobDetailsModel)1 DistributionJobDetailsModel (com.synopsys.integration.alert.common.persistence.model.job.details.DistributionJobDetailsModel)1 JiraJobCustomFieldModel (com.synopsys.integration.alert.common.persistence.model.job.details.JiraJobCustomFieldModel)1 MSTeamsJobDetailsModel (com.synopsys.integration.alert.common.persistence.model.job.details.MSTeamsJobDetailsModel)1 SlackJobDetailsModel (com.synopsys.integration.alert.common.persistence.model.job.details.SlackJobDetailsModel)1