@Test public void loadEmptyTasksFromRepository_CallViewToDisplay() { TASKS.clear(); mStatisticsPresenter.start(); verify(mStatisticsView).setProgressIndicator(true); verify(mTasksRepository).getTasks(mLoadTasksCallbackCaptor.capture()); mLoadTasksCallbackCaptor.getValue().onTasksLoaded(TASKS); verify(mStatisticsView).setProgressIndicator(false); verify(mStatisticsView).showStatistics(0, 0); }
@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 TasksRepository tasksRepository,
                               @NonNull StatisticsContract.View statisticsView); }
StatisticsPresenter implements StatisticsContract.Presenter { @Override public void start() { loadStatistics(); } StatisticsPresenter(@NonNull TasksRepository tasksRepository,
                               @NonNull StatisticsContract.View statisticsView); @Override void start(); }
StatisticsPresenter implements StatisticsContract.Presenter { @Override public void start() { loadStatistics(); } StatisticsPresenter(@NonNull TasksRepository tasksRepository,
                               @NonNull StatisticsContract.View statisticsView); @Override void start();  }