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