@Test public void isViewAttachedTest() { assertThat(postPresenter.isViewAttached()).isEqualTo(false); postPresenter.attachView(postViewMock); assertThat(postPresenter.isViewAttached()).isEqualTo(true); }
@Override public boolean isViewAttached() { return postView != null; }
PostPresenterImpl implements PostPresenter { @Override public boolean isViewAttached() { return postView != null; } }
PostPresenterImpl implements PostPresenter { @Override public boolean isViewAttached() { return postView != null; } PostPresenterImpl(final PostModel postModel, final RetrofitService retrofitService, final RxSchedulers rxSchedulers,
                             final InternetAvailabilityDetector internetAvailabilityDetector); }
PostPresenterImpl implements PostPresenter { @Override public boolean isViewAttached() { return postView != null; } PostPresenterImpl(final PostModel postModel, final RetrofitService retrofitService, final RxSchedulers rxSchedulers,
                             final InternetAvailabilityDetector internetAvailabilityDetector); @Override void attachView(final PostView postView); @Override boolean isViewAttached(); @Override @SuppressWarnings("PMD.AvoidThrowingNullPointerException") PostView getView(); @Override void loadPostUserAndPost(final Bundle extras); @Override void detachView(); }
PostPresenterImpl implements PostPresenter { @Override public boolean isViewAttached() { return postView != null; } PostPresenterImpl(final PostModel postModel, final RetrofitService retrofitService, final RxSchedulers rxSchedulers,
                             final InternetAvailabilityDetector internetAvailabilityDetector); @Override void attachView(final PostView postView); @Override boolean isViewAttached(); @Override @SuppressWarnings("PMD.AvoidThrowingNullPointerException") PostView getView(); @Override void loadPostUserAndPost(final Bundle extras); @Override void detachView();  }