@Test public void stopPlayback_stopsAudioPlayback() { viewModel.stopPlayback(); verify(audioPlayer).stopPlayback(); }
void stopPlayback() { audioPlayer.stopPlayback(); }
SearchFragmentViewModel extends SimpleViewModel { void stopPlayback() { audioPlayer.stopPlayback(); } }
SearchFragmentViewModel extends SimpleViewModel { void stopPlayback() { audioPlayer.stopPlayback(); } SearchFragmentViewModel(@NonNull final SearchDataModel searchDataModel,
                            @NonNull final Navigator navigator,
                            @NonNull final AudioPlayer audioPlayer); }
SearchFragmentViewModel extends SimpleViewModel { void stopPlayback() { audioPlayer.stopPlayback(); } SearchFragmentViewModel(@NonNull final SearchDataModel searchDataModel,
                            @NonNull final Navigator navigator,
                            @NonNull final AudioPlayer audioPlayer);  }
SearchFragmentViewModel extends SimpleViewModel { void stopPlayback() { audioPlayer.stopPlayback(); } SearchFragmentViewModel(@NonNull final SearchDataModel searchDataModel,
                            @NonNull final Navigator navigator,
                            @NonNull final AudioPlayer audioPlayer);   }