@Test public void testSetRecipient() { NotificationBatch sut = new NotificationBatch(); sut.setRecipient(TYPE, 9L); Collection<Long> result = sut.getRecipients().get(TYPE); assertEquals(Collections.singletonList(9L), result); }
public void setRecipient(final NotificationType type, final long recipientId) { recipients.put(type, Collections.singletonList(recipientId)); }
NotificationBatch { public void setRecipient(final NotificationType type, final long recipientId) { recipients.put(type, Collections.singletonList(recipientId)); } }
NotificationBatch { public void setRecipient(final NotificationType type, final long recipientId) { recipients.put(type, Collections.singletonList(recipientId)); } NotificationBatch();  NotificationBatch(final NotificationType type, final long recipientId);  NotificationBatch(final NotificationType type, final Collection<Long> recipientIds); }
NotificationBatch { public void setRecipient(final NotificationType type, final long recipientId) { recipients.put(type, Collections.singletonList(recipientId)); } 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 void setRecipient(final NotificationType type, final long recipientId) { recipients.put(type, Collections.singletonList(recipientId)); } 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);  }