@Test public void stopBeepAlarmTest() { LocalDateTime timerTime = LocalDateTime.of(2018, 8, 15, 11, 11); Timer timer = new Timer(1, timerTime, null, true); when(this.tbs.stopBeep(timer)).thenReturn(this.timers); this.tbs.stopBeep(timer); verify(this.tbs).stopBeep(timer); assertThat(this.tbs.stopBeep(timer).size(), is(0)); }
public Set<Integer> stopBeep(Timer timer) { this.timerList.remove(timer.getId()); this.update(); return this.timerList; }
TimerBeepService { public Set<Integer> stopBeep(Timer timer) { this.timerList.remove(timer.getId()); this.update(); return this.timerList; } }
TimerBeepService { public Set<Integer> stopBeep(Timer timer) { this.timerList.remove(timer.getId()); this.update(); return this.timerList; }  }
TimerBeepService { public Set<Integer> stopBeep(Timer timer) { this.timerList.remove(timer.getId()); this.update(); return this.timerList; }  Set<Integer> beep(Timer timer); Set<Integer> stopBeep(Timer timer); }
TimerBeepService { public Set<Integer> stopBeep(Timer timer) { this.timerList.remove(timer.getId()); this.update(); return this.timerList; }  Set<Integer> beep(Timer timer); Set<Integer> stopBeep(Timer timer);  }