@Test public void shouldSetQueryFromSearchFieldWhenCome(){ presenter.onGetTextFromSearchField("Predator"); verify(useCaseGetCinemaByQueryMock).onNextQuery("Predator"); }
void onGetTextFromSearchField(String query) { useCaseGetCinemaByQuery.onNextQuery(query); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { void onGetTextFromSearchField(String query) { useCaseGetCinemaByQuery.onNextQuery(query); } }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { void onGetTextFromSearchField(String query) { useCaseGetCinemaByQuery.onNextQuery(query); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { void onGetTextFromSearchField(String query) { useCaseGetCinemaByQuery.onNextQuery(query); } 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> { void onGetTextFromSearchField(String query) { useCaseGetCinemaByQuery.onNextQuery(query); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); @Override void initialize(); @Override void onDestroy(); void setCinemas(List<Cinema> cinemaList); void onCinemaClicked(int cinemaId , int viewHolderPosition);  }