@Test public void shouldOpenCinemaDetailScreenWhenCinemaClicked(){ presenter.setView(view); presenter.onCinemaClicked(TEST_CINEMA_ID , 6); verify(view).openCinema(TEST_CINEMA_ID , 6); }
public void onCinemaClicked(int cinemaId , int viewHolderPosition){ getView().openCinema(cinemaId , viewHolderPosition); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void onCinemaClicked(int cinemaId , int viewHolderPosition){ getView().openCinema(cinemaId , viewHolderPosition); } }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void onCinemaClicked(int cinemaId , int viewHolderPosition){ getView().openCinema(cinemaId , viewHolderPosition); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { public void onCinemaClicked(int cinemaId , int viewHolderPosition){ getView().openCinema(cinemaId , viewHolderPosition); } 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 onCinemaClicked(int cinemaId , int viewHolderPosition){ getView().openCinema(cinemaId , viewHolderPosition); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); @Override void initialize(); @Override void onDestroy(); void setCinemas(List<Cinema> cinemaList); void onCinemaClicked(int cinemaId , int viewHolderPosition);  }