@Test protected void testGetAllAlarms() { createAlarms(3, true); List<Alarm> returnedAlarms = this.acl.getAllAlarms(); assertThat(returnedAlarms, hasSize(3)); }
protected List<Alarm> getAllAlarms() { List<Alarm> alarmList = this.alarmStorage.getAll(); alarmList.sort((alarm1, alarm2) -> alarm1.getId() - alarm2.getId()); return alarmList; }
AlarmClockLogic implements RunnableService { protected List<Alarm> getAllAlarms() { List<Alarm> alarmList = this.alarmStorage.getAll(); alarmList.sort((alarm1, alarm2) -> alarm1.getId() - alarm2.getId()); return alarmList; } }
AlarmClockLogic implements RunnableService { protected List<Alarm> getAllAlarms() { List<Alarm> alarmList = this.alarmStorage.getAll(); alarmList.sort((alarm1, alarm2) -> alarm1.getId() - alarm2.getId()); return alarmList; }  }
AlarmClockLogic implements RunnableService { protected List<Alarm> getAllAlarms() { List<Alarm> alarmList = this.alarmStorage.getAll(); alarmList.sort((alarm1, alarm2) -> alarm1.getId() - alarm2.getId()); return alarmList; }  String stopRinging(); @Override void start(); @Override void stop(); }
AlarmClockLogic implements RunnableService { protected List<Alarm> getAllAlarms() { List<Alarm> alarmList = this.alarmStorage.getAll(); alarmList.sort((alarm1, alarm2) -> alarm1.getId() - alarm2.getId()); return alarmList; }  String stopRinging(); @Override void start(); @Override void stop();  }