@Test public void shouldUseCaseDisposeWhenPresenterDestroy(){ presenter.onDestroy(); verify(useCaseGetCinemaByIdMock).dispose(); }
public void onDestroy(){ useCaseGetCinemaById.dispose(); useCaseGetFavouriteListCinema.dispose(); setView(null); }
CinemaDetailPresenter extends BasePresenter<CinemaDetailPresenter.View> { public void onDestroy(){ useCaseGetCinemaById.dispose(); useCaseGetFavouriteListCinema.dispose(); setView(null); } }
CinemaDetailPresenter extends BasePresenter<CinemaDetailPresenter.View> { public void onDestroy(){ useCaseGetCinemaById.dispose(); useCaseGetFavouriteListCinema.dispose(); setView(null); } CinemaDetailPresenter(GetCinemaById useCaseGetCinemaById ,
                                 GetFavouriteListCinema useCaseGetFavouriteListCinema); }
CinemaDetailPresenter extends BasePresenter<CinemaDetailPresenter.View> { public void onDestroy(){ useCaseGetCinemaById.dispose(); useCaseGetFavouriteListCinema.dispose(); setView(null); } CinemaDetailPresenter(GetCinemaById useCaseGetCinemaById ,
                                 GetFavouriteListCinema useCaseGetFavouriteListCinema); @Override void initialize(); void setCinemaId(int cinemaId); void onSmallPosterClicked(List<String> posterUrls); void onFABCinemaMenuClicked(); void onForegroundViewClicked(); @SuppressLint("CheckResult") void onAddFavouriteCinemaClicked(); void onShowedDateAndTimePickerDialog(DateAndTimeInfo dateAndTimeInfo); void onDestroy(); }
CinemaDetailPresenter extends BasePresenter<CinemaDetailPresenter.View> { public void onDestroy(){ useCaseGetCinemaById.dispose(); useCaseGetFavouriteListCinema.dispose(); setView(null); } CinemaDetailPresenter(GetCinemaById useCaseGetCinemaById ,
                                 GetFavouriteListCinema useCaseGetFavouriteListCinema); @Override void initialize(); void setCinemaId(int cinemaId); void onSmallPosterClicked(List<String> posterUrls); void onFABCinemaMenuClicked(); void onForegroundViewClicked(); @SuppressLint("CheckResult") void onAddFavouriteCinemaClicked(); void onShowedDateAndTimePickerDialog(DateAndTimeInfo dateAndTimeInfo); void onDestroy();  }