@Test public void applyUpdate() throws Exception { CancelContactRequestUpdate update = new CancelContactRequestUpdate(date, creator1); update.applyUpdate(mockRepos); verify(mockUserRepository).setIsRequesting(creator1, false); }
@Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsRequesting(creator, false); }
CancelContactRequestUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsRequesting(creator, false); } }
CancelContactRequestUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsRequesting(creator, false); } CancelContactRequestUpdate(@JsonProperty("time-created") Date timeCreated,
                                      @JsonProperty("creator") int creator); }
CancelContactRequestUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsRequesting(creator, false); } CancelContactRequestUpdate(@JsonProperty("time-created") Date timeCreated,
                                      @JsonProperty("creator") int creator); @Override void applyUpdate(RepositorySet repositorySet); }
CancelContactRequestUpdate extends Update { @Override public void applyUpdate(RepositorySet repositorySet) { repositorySet.userRepository.setIsRequesting(creator, false); } CancelContactRequestUpdate(@JsonProperty("time-created") Date timeCreated,
                                      @JsonProperty("creator") int creator); @Override void applyUpdate(RepositorySet repositorySet);  }