Search in sources :

Example 1 with SlackChannelKey

use of com.synopsys.integration.alert.descriptor.api.SlackChannelKey in project hub-alert by blackducksoftware.

the class StaticJobAccessorTestIT method verifySlackSavesTest.

@Test
public void verifySlackSavesTest() {
    SlackJobDetailsModel slackJobDetailsModel = new SlackJobDetailsModel(UUID.randomUUID(), "webhook", "channelName", "channelUsername");
    DistributionJobRequestModel jobRequestModel = createJobRequestModel(slackJobDetailsModel, new SlackChannelKey());
    createAndAssertJob(jobRequestModel);
}
Also used : SlackChannelKey(com.synopsys.integration.alert.descriptor.api.SlackChannelKey) SlackJobDetailsModel(com.synopsys.integration.alert.common.persistence.model.job.details.SlackJobDetailsModel) DistributionJobRequestModel(com.synopsys.integration.alert.common.persistence.model.job.DistributionJobRequestModel) AlertIntegrationTest(com.synopsys.integration.alert.util.AlertIntegrationTest) Test(org.junit.jupiter.api.Test)

Aggregations

DistributionJobRequestModel (com.synopsys.integration.alert.common.persistence.model.job.DistributionJobRequestModel)1 SlackJobDetailsModel (com.synopsys.integration.alert.common.persistence.model.job.details.SlackJobDetailsModel)1 SlackChannelKey (com.synopsys.integration.alert.descriptor.api.SlackChannelKey)1 AlertIntegrationTest (com.synopsys.integration.alert.util.AlertIntegrationTest)1 Test (org.junit.jupiter.api.Test)1