@Override public List<NotificationDto> getNotificationsByTopicId(String topicId) throws ControlServiceException { return notificationService.findNotificationsByTopicId(topicId); }
@Test public void testFindNotificationsByTopicId() { NotificationDto notification = generateNotificationsDto(null, null, 1, null).get(0); Assert.assertNotNull(notification); NotificationDto found = notificationService.findNotificationsByTopicId(notification.getTopicId()).get(0); Assert.assertEquals(notification, found); }