@Test protected void testGetAllTimers() { createTimers(3, true); List<Timer> returnedTimers = this.tlogic.getAllTimers(); assertThat(returnedTimers, hasSize(3)); }
public List<Timer> getAllTimers() { List<Timer> timerList = this.timerStorage.getAll(); timerList.sort((timer1, timer2) -> timer1.getId() - timer2.getId()); return timerList; }
TimerLogic implements RunnableService { public List<Timer> getAllTimers() { List<Timer> timerList = this.timerStorage.getAll(); timerList.sort((timer1, timer2) -> timer1.getId() - timer2.getId()); return timerList; } }
TimerLogic implements RunnableService { public List<Timer> getAllTimers() { List<Timer> timerList = this.timerStorage.getAll(); timerList.sort((timer1, timer2) -> timer1.getId() - timer2.getId()); return timerList; }  }
TimerLogic implements RunnableService { public List<Timer> getAllTimers() { List<Timer> timerList = this.timerStorage.getAll(); timerList.sort((timer1, timer2) -> timer1.getId() - timer2.getId()); return timerList; }  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 List<Timer> getAllTimers() { List<Timer> timerList = this.timerStorage.getAll(); timerList.sort((timer1, timer2) -> timer1.getId() - timer2.getId()); return timerList; }  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();  }