IdentityDisableBulkAction extends AbstractBulkAction<IdmIdentityDto, IdmIdentityFilter> { @Override public String getName() { return NAME; }  @Override String getName(); @Override int getOrder(); @Override NotificationLevel getLevel(); @Override ReadWriteDtoService<IdmIdentityDto, IdmIdentityFilter> getService(); static final String NAME; }
@Test public void checkNotification() { List<IdmIdentityDto> identities = this.createIdentities(5); IdmBulkActionDto bulkAction = this.findBulkAction(IdmIdentity.class, IdentityDisableBulkAction.NAME); Set<UUID> ids = this.getIdFromList(identities); bulkAction.setIdentifiers(ids); IdmBulkActionDto processAction = bulkActionManager.processAction(bulkAction); checkResultLrt(processAction, 5l, null, null); IdmNotificationFilter filter = new IdmNotificationFilter(); filter.setRecipient(loginIdentity.getUsername()); filter.setNotificationType(IdmEmailLog.class); List<IdmNotificationLogDto> notifications = notificationLogService.find(filter, null).getContent(); assertEquals(1, notifications.size()); IdmNotificationLogDto notificationLogDto = notifications.get(0); assertEquals(IdmEmailLog.NOTIFICATION_TYPE, notificationLogDto.getType()); assertTrue(notificationLogDto.getMessage().getHtmlMessage().contains(bulkAction.getName())); }