SingleViewPresenter extends VisumPresenter<V> { public final void setView(V view) { setView(DEFAULT_VIEW_ID, view); }  final void setView(V view); @Override final void onStop(); @Override final void onStart(); @NonNull final V view(); final Subscription subscribe(Observable<T> observable, Observer<? super T> observer); final Subscription subscribe(Observable<T> observable, Action1<T> action, Action1<Throwable> error); final Subscription subscribe(Single<T> single, SingleSubscriber<T> subscriber); final Subscription subscribe(Single<T> single, Action1<T> action, Action1<Throwable> onError); final Subscription subscribe(Completable completable, Action0 onComplete, Action1<Throwable> onError); static final int DEFAULT_VIEW_ID; }
@Test public void testSetView() { BaseTestView view = getClient(); view.attachPresenter(); assertPresenterAttached(presenter, SingleViewPresenter.DEFAULT_VIEW_ID, view); view.detachPresenter(); assertPresenterDetached(presenter, SingleViewPresenter.DEFAULT_VIEW_ID, view); }