use of com.synopsys.integration.blackduck.api.manual.component.NotificationContentComponent in project hub-alert by blackducksoftware.
the class JobNotificationFilterUtilsTest method doesNotificationApplyToJobDefaultTest.
@Test
public void doesNotificationApplyToJobDefaultTest() {
NotificationContentComponent notificationContent = Mockito.mock(NotificationContentComponent.class);
AlertNotificationModel notificationModel = createAlertNotificationModel(NotificationType.LICENSE_LIMIT);
DetailedNotificationContent detailedNotificationContent = DetailedNotificationContent.projectless(notificationModel, notificationContent);
FilteredDistributionJobResponseModel jobResponseModel = createFilteredDistributionJobResponseModel(List.of(NotificationType.LICENSE_LIMIT.name()), List.of(), List.of(), List.of(), false, "", "");
assertTrue(JobNotificationFilterUtils.doesNotificationApplyToJob(jobResponseModel, detailedNotificationContent));
}
Aggregations