assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId());
assertEquals(4, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId()); assertEquals("mary", notification.getRecipients().get(1).getId()); assertEquals("sales", notification.getRecipients().get(2).getId()); assertEquals("hr", notification.getRecipients().get(3).getId());
assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId()); assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId());
assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId());
if(notifications != null) { for(Notification notification : notifications) { List<? extends OrganizationalEntity> recipients = notification.getRecipients(); if(recipients != null) { for(OrganizationalEntity recipient : recipients) { if(notifications != null) { for(Notification notification : notifications) { List<? extends OrganizationalEntity> recipients = notification.getRecipients(); if(recipients != null) { for(OrganizationalEntity recipient : recipients) {
assertEquals(4, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId()); assertEquals("mary", notification.getRecipients().get(1).getId()); assertEquals("sales", notification.getRecipients().get(2).getId()); assertEquals("hr", notification.getRecipients().get(3).getId());
assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId());
assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId());
assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId()); assertEquals(1, notification.getRecipients().size()); assertEquals("john", notification.getRecipients().get(0).getId());