@Test public void loadStatisticsWhenTasksAreUnavailable_CallErrorToDisplay() { mStatisticsPresenter.start(); verify(mTasksRepository).getTasks(mLoadTasksCallbackCaptor.capture()); mLoadTasksCallbackCaptor.getValue().onDataNotAvailable(); verify(mStatisticsView).showLoadingStatisticsError(); }
@Override public void start() { loadStatistics(); }
StatisticsPresenter implements StatisticsContract.Presenter { @Override public void start() { loadStatistics(); } }
StatisticsPresenter implements StatisticsContract.Presenter { @Override public void start() { loadStatistics(); } StatisticsPresenter(
            @NonNull UseCaseHandler useCaseHandler,
            @NonNull StatisticsContract.View statisticsView,
            @NonNull GetTasks getTasks); }
StatisticsPresenter implements StatisticsContract.Presenter { @Override public void start() { loadStatistics(); } StatisticsPresenter(
            @NonNull UseCaseHandler useCaseHandler,
            @NonNull StatisticsContract.View statisticsView,
            @NonNull GetTasks getTasks); @Override void start(); }
StatisticsPresenter implements StatisticsContract.Presenter { @Override public void start() { loadStatistics(); } StatisticsPresenter(
            @NonNull UseCaseHandler useCaseHandler,
            @NonNull StatisticsContract.View statisticsView,
            @NonNull GetTasks getTasks); @Override void start();  }