@Test public void shouldUseCaseDisposeWhenPresenterDestroy(){ presenter.onDestroy(); verify(useCaseGetActorByIdMock , times(1)).dispose(); }
@Override public void onDestroy() { useCaseGetCinemaById.dispose(); setView(null); }
ActorDetailPresenter extends BasePresenter<ActorDetailPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaById.dispose(); setView(null); } }
ActorDetailPresenter extends BasePresenter<ActorDetailPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaById.dispose(); setView(null); } ActorDetailPresenter(GetActorById useCaseGetCinemaById); }
ActorDetailPresenter extends BasePresenter<ActorDetailPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaById.dispose(); setView(null); } ActorDetailPresenter(GetActorById useCaseGetCinemaById); @Override void initialize(); @Override void onDestroy(); void setActorId(int actorId); void onAvatarClicked(List<String> posterUrls); }
ActorDetailPresenter extends BasePresenter<ActorDetailPresenter.View> { @Override public void onDestroy() { useCaseGetCinemaById.dispose(); setView(null); } ActorDetailPresenter(GetActorById useCaseGetCinemaById); @Override void initialize(); @Override void onDestroy(); void setActorId(int actorId); void onAvatarClicked(List<String> posterUrls);  }