@Test public void isIgnoring() { PlayerProfileRepository playerProfileRepository = mock(PlayerProfileRepository.class); IgnoreRepository ignoreRepository = mock(IgnoreRepository.class); IgnoreService ignoreService = new IgnoreService(playerProfileRepository, ignoreRepository); UUID who = UUID.randomUUID(); when(ignoreRepository.isIgnoring(eq(who), eq("target"))).thenReturn(true); assertTrue(ignoreService.isIgnoring(who, "target")); }
public boolean isIgnoring(UUID who, String target) { return ignoreRepository.isIgnoring(who, target); }
IgnoreService { public boolean isIgnoring(UUID who, String target) { return ignoreRepository.isIgnoring(who, target); } }
IgnoreService { public boolean isIgnoring(UUID who, String target) { return ignoreRepository.isIgnoring(who, target); }  }
IgnoreService { public boolean isIgnoring(UUID who, String target) { return ignoreRepository.isIgnoring(who, target); }  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 boolean isIgnoring(UUID who, String target) { return ignoreRepository.isIgnoring(who, target); }  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);  }