@Test public void deleteTimerObjectTest() { Map<String, EntityData> map = new HashMap<>(); when(this.number.getNumber()).thenReturn(1); map.put("number", this.number); assertThat(this.tSpeech.deleteTimerObject(map), is(this.tLogic.deleteTimer(1))); }
@Intent public String deleteTimerObject(Map<String, EntityData> entities) { try { return this.timerLogic.deleteTimer(entities.get(NUMBER_MAP_KEY).getNumber()); } catch (NoSuchElementException e) { this.logException(e); return ELEMENTNOTFOUND; } }
TimerSpeech { @Intent public String deleteTimerObject(Map<String, EntityData> entities) { try { return this.timerLogic.deleteTimer(entities.get(NUMBER_MAP_KEY).getNumber()); } catch (NoSuchElementException e) { this.logException(e); return ELEMENTNOTFOUND; } } }
TimerSpeech { @Intent public String deleteTimerObject(Map<String, EntityData> entities) { try { return this.timerLogic.deleteTimer(entities.get(NUMBER_MAP_KEY).getNumber()); } catch (NoSuchElementException e) { this.logException(e); return ELEMENTNOTFOUND; } }  }
TimerSpeech { @Intent public String deleteTimerObject(Map<String, EntityData> entities) { try { return this.timerLogic.deleteTimer(entities.get(NUMBER_MAP_KEY).getNumber()); } catch (NoSuchElementException e) { this.logException(e); return ELEMENTNOTFOUND; } }  @Intent String setTimer(Map<String, EntityData> entities); @Intent String pauseTimer(Map<String, EntityData> entities); @Intent String reactivateTimer(Map<String, EntityData> entities); @Intent String resetTimerObjects(Map<String, EntityData> entities); @Intent String deleteTimerObject(Map<String, EntityData> entities); @Intent String stopRinging(Map<String, EntityData> entities); @Intent String getTimerObject(Map<String, EntityData> entities); @Intent String getAllTimerObjects(Map<String, EntityData> entities); @Intent String getRemainingTimerDelay(Map<String, EntityData> entities); }
TimerSpeech { @Intent public String deleteTimerObject(Map<String, EntityData> entities) { try { return this.timerLogic.deleteTimer(entities.get(NUMBER_MAP_KEY).getNumber()); } catch (NoSuchElementException e) { this.logException(e); return ELEMENTNOTFOUND; } }  @Intent String setTimer(Map<String, EntityData> entities); @Intent String pauseTimer(Map<String, EntityData> entities); @Intent String reactivateTimer(Map<String, EntityData> entities); @Intent String resetTimerObjects(Map<String, EntityData> entities); @Intent String deleteTimerObject(Map<String, EntityData> entities); @Intent String stopRinging(Map<String, EntityData> entities); @Intent String getTimerObject(Map<String, EntityData> entities); @Intent String getAllTimerObjects(Map<String, EntityData> entities); @Intent String getRemainingTimerDelay(Map<String, EntityData> entities);  }