@Test public void testResetTimersNoTimers() { assertThat(this.tlogic.deleteAllTimers(), is("No timers found")); }
public String deleteAllTimers() { int counter = 0; for (Timer t : this.timerStorage.getAll()) { counter++; this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); } if (counter == 0) { return "No timers found"; } return counter + " timers deleted"; }
TimerLogic implements RunnableService { public String deleteAllTimers() { int counter = 0; for (Timer t : this.timerStorage.getAll()) { counter++; this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); } if (counter == 0) { return "No timers found"; } return counter + " timers deleted"; } }
TimerLogic implements RunnableService { public String deleteAllTimers() { int counter = 0; for (Timer t : this.timerStorage.getAll()) { counter++; this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); } if (counter == 0) { return "No timers found"; } return counter + " timers deleted"; }  }
TimerLogic implements RunnableService { public String deleteAllTimers() { int counter = 0; for (Timer t : this.timerStorage.getAll()) { counter++; this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); } if (counter == 0) { return "No timers found"; } return counter + " timers 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 deleteAllTimers() { int counter = 0; for (Timer t : this.timerStorage.getAll()) { counter++; this.timerbeep.stopBeep(t); this.timerStorage.deleteById(t.getPersistentId()); } if (counter == 0) { return "No timers found"; } return counter + " timers 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();  }