assertEquals(models.get(0).getId(), systemNotification1.getId());
assertEquals(models.get(0).getNotificationType(), systemNotification1.getNotificationType());
}
private SystemNotification createSystemNotification(boolean allPages, Date startDate, Date endDate, String message, SystemNotificationType notificationType, SystemNotificationSeverity notificationSeverity) {
SystemNotification systemNotification = new SystemNotification();
systemNotification.setAllPages(allPages);
systemNotification.setStartDate(startDate);
systemNotification.setEndDate(endDate);
systemNotification.setMessage(message);
systemNotification.setNotificationType(notificationType);
systemNotification.setNotificationSeverity(notificationSeverity);
systemNotificationService.add(systemNotification);
assertNotNull(systemNotification.getId());
assertTrue(systemNotificationService.doesEntityExist(systemNotification.getId()));
return systemNotification;
}