@Test protected void testDeleteTimerNotFound() { assertThrows(NoSuchElementException.class, () -> this.tlogic.deleteTimer(4)); }
public String deleteTimer(int timerNumber) { Timer t = getTimer(timerNumber); this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); return this.timerS + t.getId() + " deleted"; }
TimerLogic implements RunnableService { public String deleteTimer(int timerNumber) { Timer t = getTimer(timerNumber); this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); return this.timerS + t.getId() + " deleted"; } }
TimerLogic implements RunnableService { public String deleteTimer(int timerNumber) { Timer t = getTimer(timerNumber); this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); return this.timerS + t.getId() + " deleted"; }  }
TimerLogic implements RunnableService { public String deleteTimer(int timerNumber) { Timer t = getTimer(timerNumber); this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); return this.timerS + t.getId() + " deleted"; }  Runnable createTimerRunnable(Timer timer); Timer setTimer(LocalDateTime timerTime); int searchTimerId(); String deleteAllTimers(); String deleteTimer(int timerNumber); String stopRinging(); Timer getTimer(int timerNumber); List<Timer> getAllTimers(); Timer pauseTimer(Timer timer); Timer reactivateTimer(Timer timer); @Override void start(); @Override void stop(); }
TimerLogic implements RunnableService { public String deleteTimer(int timerNumber) { Timer t = getTimer(timerNumber); this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); return this.timerS + t.getId() + " deleted"; }  Runnable createTimerRunnable(Timer timer); Timer setTimer(LocalDateTime timerTime); int searchTimerId(); String deleteAllTimers(); String deleteTimer(int timerNumber); String stopRinging(); Timer getTimer(int timerNumber); List<Timer> getAllTimers(); Timer pauseTimer(Timer timer); Timer reactivateTimer(Timer timer); @Override void start(); @Override void stop();  }