@Test public void onViewCreatedTest() { spyOnHasVoiceInteractor(); callOnViewCreated(); Mockito.verify(fragment).bindAndSubscribe(Mockito.eq(fragment.hasVoiceInteractor.hasVoice), Mockito.any(), Mockito.any()); Mockito.verify(fragment.hasVoiceInteractor).update(); }
@Override public void onViewCreated(final View view, final Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); bindAndSubscribe(hasVoiceInteractor.hasVoice, this::bindVoiceSettings, Functions.LOG_ERROR); hasVoiceInteractor.update(); }
FeedPresenterFragment extends ViewPagerPresenterFragment implements InsightInfoFragment.ParentProvider { @Override public void onViewCreated(final View view, final Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); bindAndSubscribe(hasVoiceInteractor.hasVoice, this::bindVoiceSettings, Functions.LOG_ERROR); hasVoiceInteractor.update(); } }
FeedPresenterFragment extends ViewPagerPresenterFragment implements InsightInfoFragment.ParentProvider { @Override public void onViewCreated(final View view, final Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); bindAndSubscribe(hasVoiceInteractor.hasVoice, this::bindVoiceSettings, Functions.LOG_ERROR); hasVoiceInteractor.update(); }  }
FeedPresenterFragment extends ViewPagerPresenterFragment implements InsightInfoFragment.ParentProvider { @Override public void onViewCreated(final View view, final Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); bindAndSubscribe(hasVoiceInteractor.hasVoice, this::bindVoiceSettings, Functions.LOG_ERROR); hasVoiceInteractor.update(); }  @Override void onCreate(final Bundle savedInstanceState); @Override void onViewCreated(final View view,
                              final Bundle savedInstanceState); @VisibleForTesting void bindVoiceSettings(final boolean hasVoice); @Nullable @Override InsightInfoFragment.Parent provideInsightInfoParent(); }
FeedPresenterFragment extends ViewPagerPresenterFragment implements InsightInfoFragment.ParentProvider { @Override public void onViewCreated(final View view, final Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); bindAndSubscribe(hasVoiceInteractor.hasVoice, this::bindVoiceSettings, Functions.LOG_ERROR); hasVoiceInteractor.update(); }  @Override void onCreate(final Bundle savedInstanceState); @Override void onViewCreated(final View view,
                              final Bundle savedInstanceState); @VisibleForTesting void bindVoiceSettings(final boolean hasVoice); @Nullable @Override InsightInfoFragment.Parent provideInsightInfoParent();  }