@Test public void applyUpdate() throws Exception { EventDeletionUpdate update = new EventDeletionUpdate(date, creator1, group1, event1); update.applyUpdate(mockRepos); verify(mockEventRepository).deleteEvent(event1); }
@Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.eventRepository.deleteEvent(eventID); }
EventDeletionUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.eventRepository.deleteEvent(eventID); } }
EventDeletionUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.eventRepository.deleteEvent(eventID); } EventDeletionUpdate(@JsonProperty("time-created") Date timeCreated,
                               @JsonProperty("creator") int creator,
                               @JsonProperty("group-id") int groupID,
                               @JsonProperty("id") int eventID); }
EventDeletionUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.eventRepository.deleteEvent(eventID); } EventDeletionUpdate(@JsonProperty("time-created") Date timeCreated,
                               @JsonProperty("creator") int creator,
                               @JsonProperty("group-id") int groupID,
                               @JsonProperty("id") int eventID); @Override void applyUpdate(RepositorySet repositorySet); }
EventDeletionUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.eventRepository.deleteEvent(eventID); } EventDeletionUpdate(@JsonProperty("time-created") Date timeCreated,
                               @JsonProperty("creator") int creator,
                               @JsonProperty("group-id") int groupID,
                               @JsonProperty("id") int eventID); @Override void applyUpdate(RepositorySet repositorySet);  }