@Test public void shouldUseCaseDisposeWhenPresenterDestroy(){ presenter.onDestroy(); verify(useCaseGetCinemaByQueryMock).removeActions(); verify(useCaseGetCinemaByQueryMock).dispose(); }
@Override public void onDestroy() { useCaseGetCinemaByQuery.removeActions(); useCaseGetCinemaByQuery.dispose(); setView(null); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaByQuery.removeActions(); useCaseGetCinemaByQuery.dispose(); setView(null); } }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaByQuery.removeActions(); useCaseGetCinemaByQuery.dispose(); setView(null); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); }
SmallCinemasPresenter extends BasePresenter<SmallCinemasPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaByQuery.removeActions(); useCaseGetCinemaByQuery.dispose(); setView(null); } 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> { @Override public void onDestroy() { useCaseGetCinemaByQuery.removeActions(); useCaseGetCinemaByQuery.dispose(); setView(null); } SmallCinemasPresenter(GetCinemaByQuery useCaseGetCinemaByQuery); @Override void initialize(); @Override void onDestroy(); void setCinemas(List<Cinema> cinemaList); void onCinemaClicked(int cinemaId , int viewHolderPosition);  }