@Test public void bindTrendsTest() { fragment.presenterView = Mockito.spy(fragment.presenterView); final Trends trends = Mockito.mock(Trends.class); fragment.bindTrends(trends); Mockito.verify(fragment.presenterView).updateTrends(Mockito.eq(trends)); }
@VisibleForTesting void bindTrends(@NonNull final Trends trends) { this.presenterView.updateTrends(trends); }
TrendsFragment extends ControllerPresenterFragment<TrendsView> implements
        TrendFeedViewItem.OnRetry,
        TrendGraphView.AnimationCallback,
        HomeActivity.ScrollUp { @VisibleForTesting void bindTrends(@NonNull final Trends trends) { this.presenterView.updateTrends(trends); } }
TrendsFragment extends ControllerPresenterFragment<TrendsView> implements
        TrendFeedViewItem.OnRetry,
        TrendGraphView.AnimationCallback,
        HomeActivity.ScrollUp { @VisibleForTesting void bindTrends(@NonNull final Trends trends) { this.presenterView.updateTrends(trends); }  }
TrendsFragment extends ControllerPresenterFragment<TrendsView> implements
        TrendFeedViewItem.OnRetry,
        TrendGraphView.AnimationCallback,
        HomeActivity.ScrollUp { @VisibleForTesting void bindTrends(@NonNull final Trends trends) { this.presenterView.updateTrends(trends); }  @Override void initializePresenterView(); @Override void onCreate(final Bundle savedInstanceState); @Override void onViewCreated(final View view, final Bundle savedInstanceState); @Override void setUserVisibleHint(final boolean isVisibleToUser); @Override void setVisibleToUser(final boolean isVisible); @Override void fetchTrends(); @Override void isFinished(); @Override void scrollUp(); }
TrendsFragment extends ControllerPresenterFragment<TrendsView> implements
        TrendFeedViewItem.OnRetry,
        TrendGraphView.AnimationCallback,
        HomeActivity.ScrollUp { @VisibleForTesting void bindTrends(@NonNull final Trends trends) { this.presenterView.updateTrends(trends); }  @Override void initializePresenterView(); @Override void onCreate(final Bundle savedInstanceState); @Override void onViewCreated(final View view, final Bundle savedInstanceState); @Override void setUserVisibleHint(final boolean isVisibleToUser); @Override void setVisibleToUser(final boolean isVisible); @Override void fetchTrends(); @Override void isFinished(); @Override void scrollUp();  }