@Test protected void testDeleteAlarmNotFound() { assertThrows(NoSuchElementException.class, () -> this.acl.deleteAlarm(4)); }
protected String deleteAlarm(int alarmNumber) { Alarm a = getAlarm(alarmNumber); deactivateAlarm(a.getId()); this.alarmStorage.deleteById(a.getPersistentId()); return this.alarmS + a.getId() + " deleted"; }
AlarmClockLogic implements RunnableService { protected String deleteAlarm(int alarmNumber) { Alarm a = getAlarm(alarmNumber); deactivateAlarm(a.getId()); this.alarmStorage.deleteById(a.getPersistentId()); return this.alarmS + a.getId() + " deleted"; } }
AlarmClockLogic implements RunnableService { protected String deleteAlarm(int alarmNumber) { Alarm a = getAlarm(alarmNumber); deactivateAlarm(a.getId()); this.alarmStorage.deleteById(a.getPersistentId()); return this.alarmS + a.getId() + " deleted"; }  }
AlarmClockLogic implements RunnableService { protected String deleteAlarm(int alarmNumber) { Alarm a = getAlarm(alarmNumber); deactivateAlarm(a.getId()); this.alarmStorage.deleteById(a.getPersistentId()); return this.alarmS + a.getId() + " deleted"; }  String stopRinging(); @Override void start(); @Override void stop(); }
AlarmClockLogic implements RunnableService { protected String deleteAlarm(int alarmNumber) { Alarm a = getAlarm(alarmNumber); deactivateAlarm(a.getId()); this.alarmStorage.deleteById(a.getPersistentId()); return this.alarmS + a.getId() + " deleted"; }  String stopRinging(); @Override void start(); @Override void stop();  }