### Question:
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();  }### Answer:
@Test public void testResetTimers() { List<Timer> returnedTimers = createTimers(3, true); this.timerNumber = 2; when(this.timerStorage.getAll()).thenReturn(returnedTimers); assertThat(this.tlogic.deleteAllTimers(), is("3 timers deleted")); }
@Test public void testResetTimersNoTimers() { assertThat(this.tlogic.deleteAllTimers(), is("No timers found")); }
@Test protected void testDeleteAllTimers() { List<Timer> returnedTimers = createTimers(3, false); when(this.timerStorage.getAll()).thenReturn(returnedTimers); assertThat(this.tlogic.deleteAllTimers(), is("3 timers deleted")); }
@Test protected void testDeleteAllTimersNoTimers() { List<Timer> returnedTimers = createTimers(0, false); when(this.timerStorage.getAll()).thenReturn(returnedTimers); assertThat(this.tlogic.deleteAllTimers(), is("No timers found")); }