@Test public void shouldResetProgressBarWhenStopIsCalled() throws Exception { setupAudioPlayerManager(); decoratedMediaManager.play(FILENAME, progressBar, IS_NOT_ASSET); decoratedMediaManager.stop(); verify(progressBar).setProgress(eq(RESET_PROGRESS_BAR)); }
@Test public void shouldStopAndDestroyScheduledFutureWhenStopIsCalled() throws Exception { setupAudioPlayerManager(); decoratedMediaManager.play(FILENAME, progressBar, IS_NOT_ASSET); decoratedMediaManager.stop(); verify(decoratedMediaManager.getScheduledFuture()).cancel(true); }
@Test public void shouldStopAudioWhenStopIsCalled() throws AudioFileException, AudioFileNotSetException { setupAudioPlayerManager(); decoratedMediaManager.play(FILENAME, progressBar, IS_NOT_ASSET); decoratedMediaManager.stop(); verify(getAudioPlayerManager()).stop(); }