@Test public void shouldSortCinemasByDateWhenSetCinemas(){ presenter.setView(view); presenter.setCinemas(cinemaListMock); verify(view).showCinemas(cinemaListMock); verify(view).hideLoading(); }
public void setCinemas(List<Cinema> cinemaList){ cinemas = cinemaList; useCaseGetCinemaByQuery.sortByDate(cinemas); getView().showCinemas(cinemas); getView().hideLoading(); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void setCinemas(List<Cinema> cinemaList){ cinemas = cinemaList; useCaseGetCinemaByQuery.sortByDate(cinemas); getView().showCinemas(cinemas); getView().hideLoading(); } }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void setCinemas(List<Cinema> cinemaList){ cinemas = cinemaList; useCaseGetCinemaByQuery.sortByDate(cinemas); getView().showCinemas(cinemas); getView().hideLoading(); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void setCinemas(List<Cinema> cinemaList){ cinemas = cinemaList; useCaseGetCinemaByQuery.sortByDate(cinemas); getView().showCinemas(cinemas); getView().hideLoading(); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); @Override void initialize(); @Override void onDestroy(); void setCinemas(List<Cinema> cinemaList); void onCinemaClicked(int cinemaId , int viewHolderPosition); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void setCinemas(List<Cinema> cinemaList){ cinemas = cinemaList; useCaseGetCinemaByQuery.sortByDate(cinemas); getView().showCinemas(cinemas); getView().hideLoading(); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); @Override void initialize(); @Override void onDestroy(); void setCinemas(List<Cinema> cinemaList); void onCinemaClicked(int cinemaId , int viewHolderPosition);  }