@Test public void onNextNotNull() throws Exception { presenter.onNext(session); verify(view).loginSuccess(session); }
@Override void onNext(Session data) { if (data != null) { if (isViewAttached()) { getView().loginSuccess(data); } } else { if (isViewAttached()) { getView().onError("Invalid Credentials"); } } }
ProfilePresenter extends RxPresenter<ProfileView, Session> { @Override void onNext(Session data) { if (data != null) { if (isViewAttached()) { getView().loginSuccess(data); } } else { if (isViewAttached()) { getView().onError("Invalid Credentials"); } } } }
ProfilePresenter extends RxPresenter<ProfileView, Session> { @Override void onNext(Session data) { if (data != null) { if (isViewAttached()) { getView().loginSuccess(data); } } else { if (isViewAttached()) { getView().onError("Invalid Credentials"); } } }  }
ProfilePresenter extends RxPresenter<ProfileView, Session> { @Override void onNext(Session data) { if (data != null) { if (isViewAttached()) { getView().loginSuccess(data); } } else { if (isViewAttached()) { getView().onError("Invalid Credentials"); } } }  void attemptLogin(String email, String password); void logOut(String authToken); }
ProfilePresenter extends RxPresenter<ProfileView, Session> { @Override void onNext(Session data) { if (data != null) { if (isViewAttached()) { getView().loginSuccess(data); } } else { if (isViewAttached()) { getView().onError("Invalid Credentials"); } } }  void attemptLogin(String email, String password); void logOut(String authToken);  }