@Test void testPlaySomething() { when(this.playlist.toString()).thenReturn("test"); when(this.playerlogic.play()).thenReturn(this.playlist); assertThat(this.speech.playSomething(new HashMap<>()), equalTo("test")); when(this.playerlogic.play()).thenReturn(null); assertThat(this.speech.playSomething(new HashMap<>()), equalTo("No playlist available")); }
@Intent() public String playSomething(Map<String, EntityData> entites) { PlaylistEntity list = this.playerLogic.play(); return (list != null) ? list.toString() : "No playlist available"; }
SpotifySpeech { @Intent() public String playSomething(Map<String, EntityData> entites) { PlaylistEntity list = this.playerLogic.play(); return (list != null) ? list.toString() : "No playlist available"; } }
SpotifySpeech { @Intent() public String playSomething(Map<String, EntityData> entites) { PlaylistEntity list = this.playerLogic.play(); return (list != null) ? list.toString() : "No playlist available"; }  }
SpotifySpeech { @Intent() public String playSomething(Map<String, EntityData> entites) { PlaylistEntity list = this.playerLogic.play(); return (list != null) ? list.toString() : "No playlist available"; }  @Intent() String getDevices(Map<String, EntityData> entites); @Intent() Response getCurrentSong(Map<String, EntityData> entites); @Intent() String getPlaylists(Map<String, EntityData> entites); @Intent() String playSomething(Map<String, EntityData> entites); @Intent() String control(Map<String, EntityData> entites); @Intent() String volume(Map<String, EntityData> entites); @Intent() String volumePercent(Map<String, EntityData> entites); @Intent() String setDeviceId(Map<String, EntityData> entites); @Intent() String setDeviceName(Map<String, EntityData> entites); @Intent() String playPlaylistId(Map<String, EntityData> entites); @Intent() Response searchASong(Map<String, EntityData> entites); @EntityProvider("devicename") List<String> getDeviceNames(); }
SpotifySpeech { @Intent() public String playSomething(Map<String, EntityData> entites) { PlaylistEntity list = this.playerLogic.play(); return (list != null) ? list.toString() : "No playlist available"; }  @Intent() String getDevices(Map<String, EntityData> entites); @Intent() Response getCurrentSong(Map<String, EntityData> entites); @Intent() String getPlaylists(Map<String, EntityData> entites); @Intent() String playSomething(Map<String, EntityData> entites); @Intent() String control(Map<String, EntityData> entites); @Intent() String volume(Map<String, EntityData> entites); @Intent() String volumePercent(Map<String, EntityData> entites); @Intent() String setDeviceId(Map<String, EntityData> entites); @Intent() String setDeviceName(Map<String, EntityData> entites); @Intent() String playPlaylistId(Map<String, EntityData> entites); @Intent() Response searchASong(Map<String, EntityData> entites); @EntityProvider("devicename") List<String> getDeviceNames();  }