ReaderViewPresenter extends BasePresenter<ReaderView> implements TTSPlayerFragment.OnTTSStopSpeakListener { void onChangeSettings() { initView(); getView().updateContent(); } @Inject  ReaderViewPresenter(Librarian librarian, PreferenceHelper prefHelper, AnalyticsHelper helper); @Override void onStopSpeak(); @Override void onViewCreated();  }
@Test public void onChangeSettings() throws Exception { presenter.onChangeSettings(); verify(view, times(1)).setTextAppearance(any(TextAppearance.class)); verify(view, times(1)).setReaderMode(any(ReaderWebView.Mode.class)); verify(view, times(1)).setKeepScreen(anyBoolean()); verify(view, times(1)).setCurrentOrientation(anyBoolean()); verify(view, times(1)).updateActivityMode(); verify(view).updateContent(); }