@Test public void pauseTimerTest() { Map<String, EntityData> map = new HashMap<>(); map.put("number", this.number); when(map.get("number").getNumber()).thenReturn(1); LocalDateTime timerDate = LocalDateTime.now().plusHours(this.hour.getNumber()) .plusMinutes(this.minute.getNumber()).plusSeconds(this.second.getNumber()) .truncatedTo(ChronoUnit.SECONDS); Timer t = new Timer(1, timerDate, null, true); when(this.tLogic.getTimer(1)).thenReturn(t); assertThat(this.tSpeech.pauseTimer(map), is("Timer 1 paused")); }
@Intent public String pauseTimer(Map<String, EntityData> entities) { Timer timer = this.timerLogic.getTimer(entities.get(NUMBER_MAP_KEY).getNumber()); this.timerLogic.pauseTimer(timer); return timerS + timer.getId() + " paused"; }
TimerSpeech { @Intent public String pauseTimer(Map<String, EntityData> entities) { Timer timer = this.timerLogic.getTimer(entities.get(NUMBER_MAP_KEY).getNumber()); this.timerLogic.pauseTimer(timer); return timerS + timer.getId() + " paused"; } }
TimerSpeech { @Intent public String pauseTimer(Map<String, EntityData> entities) { Timer timer = this.timerLogic.getTimer(entities.get(NUMBER_MAP_KEY).getNumber()); this.timerLogic.pauseTimer(timer); return timerS + timer.getId() + " paused"; }  }
TimerSpeech { @Intent public String pauseTimer(Map<String, EntityData> entities) { Timer timer = this.timerLogic.getTimer(entities.get(NUMBER_MAP_KEY).getNumber()); this.timerLogic.pauseTimer(timer); return timerS + timer.getId() + " paused"; }  @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 pauseTimer(Map<String, EntityData> entities) { Timer timer = this.timerLogic.getTimer(entities.get(NUMBER_MAP_KEY).getNumber()); this.timerLogic.pauseTimer(timer); return timerS + timer.getId() + " paused"; }  @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);  }