@Test
public void update() {
NotificationTO notificationTO = notificationService.read(100L);
assertNotNull(notificationTO);
notificationTO.setRecipients(NodeCond.getLeafCond(new MembershipCond()));
SyncopeClientException exception = null;
try {
notificationService.update(notificationTO.getId(), notificationTO);
} catch (SyncopeClientCompositeErrorException e) {
exception = e.getException(SyncopeClientExceptionType.InvalidNotification);
}
assertNotNull(exception);
MembershipCond membCond = new MembershipCond();
membCond.setRoleId(7L);
NodeCond recipients = NodeCond.getLeafCond(membCond);
notificationTO.setRecipients(recipients);
notificationService.update(notificationTO.getId(), notificationTO);