@Test public void removeIgnore() { PlayerProfileRepository playerProfileRepository = mock(PlayerProfileRepository.class); UUID who = UUID.randomUUID(); IgnoreRepository ignoreRepository = mock(IgnoreRepository.class); when(ignoreRepository.removeIgnore(eq(who), eq("target"))).thenReturn( true ); IgnoreService ignoreService = new IgnoreService(playerProfileRepository, ignoreRepository); assertEquals(IgnoreRemoveResult.REMOVED_IGNORE, ignoreService.removeIgnore(who, "target") ); }
public IgnoreRemoveResult removeIgnore(UUID who, String target) { return ignoreRepository.removeIgnore(who, target) ? IgnoreRemoveResult.REMOVED_IGNORE : IgnoreRemoveResult.NOT_IGNORING; }
IgnoreService { public IgnoreRemoveResult removeIgnore(UUID who, String target) { return ignoreRepository.removeIgnore(who, target) ? IgnoreRemoveResult.REMOVED_IGNORE : IgnoreRemoveResult.NOT_IGNORING; } }
IgnoreService { public IgnoreRemoveResult removeIgnore(UUID who, String target) { return ignoreRepository.removeIgnore(who, target) ? IgnoreRemoveResult.REMOVED_IGNORE : IgnoreRemoveResult.NOT_IGNORING; }  }
IgnoreService { public IgnoreRemoveResult removeIgnore(UUID who, String target) { return ignoreRepository.removeIgnore(who, target) ? IgnoreRemoveResult.REMOVED_IGNORE : IgnoreRemoveResult.NOT_IGNORING; }  IgnoreResult ignore(UUID who, String target); IgnoreRemoveResult removeIgnore(UUID who, String target); List<IgnoreHistoryElement> getHistory(UUID who, int page); boolean isIgnoring(UUID who, String target); }
IgnoreService { public IgnoreRemoveResult removeIgnore(UUID who, String target) { return ignoreRepository.removeIgnore(who, target) ? IgnoreRemoveResult.REMOVED_IGNORE : IgnoreRemoveResult.NOT_IGNORING; }  IgnoreResult ignore(UUID who, String target); IgnoreRemoveResult removeIgnore(UUID who, String target); List<IgnoreHistoryElement> getHistory(UUID who, int page); boolean isIgnoring(UUID who, String target);  }