@Test public void testDeleteNotification() { list.deleteNotification("1"); assertThat(list.getDeletedIds()).contains("1"); }
public void deleteNotification(final String id) { deletedIds.add(id); }
NotificationListObject { public void deleteNotification(final String id) { deletedIds.add(id); } }
NotificationListObject { public void deleteNotification(final String id) { deletedIds.add(id); } NotificationListObject();  NotificationListObject(final String key); }
NotificationListObject { public void deleteNotification(final String id) { deletedIds.add(id); } NotificationListObject();  NotificationListObject(final String key); void addNotification(final Notification notification); void addNotifications(final Collection<Notification> notifications); void deleteNotification(final String id); void deleteNotifications(final Collection<String> ids); @Nullable String getKey(); SortedSet<Notification> getNotifications(); Set<String> getDeletedIds(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); }
NotificationListObject { public void deleteNotification(final String id) { deletedIds.add(id); } NotificationListObject();  NotificationListObject(final String key); void addNotification(final Notification notification); void addNotifications(final Collection<Notification> notifications); void deleteNotification(final String id); void deleteNotifications(final Collection<String> ids); @Nullable String getKey(); SortedSet<Notification> getNotifications(); Set<String> getDeletedIds(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }