@Test public void itSupportsNativeFragments() { AppObservable.bindFragment(fragment, Observable.just("success")).subscribe(new TestObserver<String>(observer)); verify(observer).onNext("success"); verify(observer).onCompleted(); }
public static <T> Observable<T> bindFragment(Fragment fragment, Observable<T> source) { Assertions.assertUiThread(); return source.observeOn(mainThread()) .lift(new OperatorConditionalBinding<T, Fragment>(fragment, FRAGMENT_VALIDATOR)); }
AppObservable { public static <T> Observable<T> bindFragment(Fragment fragment, Observable<T> source) { Assertions.assertUiThread(); return source.observeOn(mainThread()) .lift(new OperatorConditionalBinding<T, Fragment>(fragment, FRAGMENT_VALIDATOR)); } }
AppObservable { public static <T> Observable<T> bindFragment(Fragment fragment, Observable<T> source) { Assertions.assertUiThread(); return source.observeOn(mainThread()) .lift(new OperatorConditionalBinding<T, Fragment>(fragment, FRAGMENT_VALIDATOR)); } private  AppObservable(); }
AppObservable { public static <T> Observable<T> bindFragment(Fragment fragment, Observable<T> source) { Assertions.assertUiThread(); return source.observeOn(mainThread()) .lift(new OperatorConditionalBinding<T, Fragment>(fragment, FRAGMENT_VALIDATOR)); } private  AppObservable(); static Observable<T> bindActivity(Activity activity, Observable<T> source); static Observable<T> bindFragment(Fragment fragment, Observable<T> source); static Observable<T> bindSupportFragment(android.support.v4.app.Fragment fragment, Observable<T> source); }
AppObservable { public static <T> Observable<T> bindFragment(Fragment fragment, Observable<T> source) { Assertions.assertUiThread(); return source.observeOn(mainThread()) .lift(new OperatorConditionalBinding<T, Fragment>(fragment, FRAGMENT_VALIDATOR)); } private  AppObservable(); static Observable<T> bindActivity(Activity activity, Observable<T> source); static Observable<T> bindFragment(Fragment fragment, Observable<T> source); static Observable<T> bindSupportFragment(android.support.v4.app.Fragment fragment, Observable<T> source);  }