@Test public void testConstructorRecipientList() { Collection<Long> list = Arrays.asList(1L, 3L); NotificationBatch sut = new NotificationBatch(TYPE, list); Collection<Long> result = sut.getRecipients().get(TYPE); assertEquals(list, result); }
public Map<NotificationType, Collection<Long>> getRecipients() { return recipients; }
NotificationBatch { public Map<NotificationType, Collection<Long>> getRecipients() { return recipients; } }
NotificationBatch { public Map<NotificationType, Collection<Long>> getRecipients() { return recipients; } NotificationBatch();  NotificationBatch(final NotificationType type, final long recipientId);  NotificationBatch(final NotificationType type, final Collection<Long> recipientIds); }
NotificationBatch { public Map<NotificationType, Collection<Long>> getRecipients() { return recipients; } NotificationBatch();  NotificationBatch(final NotificationType type, final long recipientId);  NotificationBatch(final NotificationType type, final Collection<Long> recipientIds); Map<NotificationType, Collection<Long>> getRecipients(); PropertyMap<Object> getProperties(); void setRecipient(final NotificationType type, final long recipientId); void setProperty(final String key, final Object value); void setProperty(final String key, final Class type, final Serializable identity); void setPropertyAlias(final String aliasKey, final String originalKey); }
NotificationBatch { public Map<NotificationType, Collection<Long>> getRecipients() { return recipients; } NotificationBatch();  NotificationBatch(final NotificationType type, final long recipientId);  NotificationBatch(final NotificationType type, final Collection<Long> recipientIds); Map<NotificationType, Collection<Long>> getRecipients(); PropertyMap<Object> getProperties(); void setRecipient(final NotificationType type, final long recipientId); void setProperty(final String key, final Object value); void setProperty(final String key, final Class type, final Serializable identity); void setPropertyAlias(final String aliasKey, final String originalKey);  }