target stringlengths 20 113k | src_fm stringlengths 11 86.3k | src_fm_fc stringlengths 21 86.4k | src_fm_fc_co stringlengths 30 86.4k | src_fm_fc_ms stringlengths 42 86.8k | src_fm_fc_ms_ff stringlengths 43 86.8k |
|---|---|---|---|---|---|
@Test public void onCompleteteNoSubscribeOnErrorCrash() { List<Throwable> list = TestCommonHelper.trackPluginErrors(); try { CrashDummy cd = new CrashDummy(false, 1, true, true, false); SafeObserver<Object> so = cd.toSafe(); so.onComplete(); TestCommonHelper.assertError(list, 0, CompositeException.class); List<Throwabl... | @Override public void onComplete() { if (done) { return; } done = true; if (s == null) { onCompleteNoSubscription(); return; } try { actual.onComplete(); } catch (Throwable e) { Exceptions.throwIfFatal(e); RxJavaCommonPlugins.onError(e); } } | SafeObserver implements Observer<T>, Disposable { @Override public void onComplete() { if (done) { return; } done = true; if (s == null) { onCompleteNoSubscription(); return; } try { actual.onComplete(); } catch (Throwable e) { Exceptions.throwIfFatal(e); RxJavaCommonPlugins.onError(e); } } } | SafeObserver implements Observer<T>, Disposable { @Override public void onComplete() { if (done) { return; } done = true; if (s == null) { onCompleteNoSubscription(); return; } try { actual.onComplete(); } catch (Throwable e) { Exceptions.throwIfFatal(e); RxJavaCommonPlugins.onError(e); } } SafeObserver(@NonNull Observ... | SafeObserver implements Observer<T>, Disposable { @Override public void onComplete() { if (done) { return; } done = true; if (s == null) { onCompleteNoSubscription(); return; } try { actual.onComplete(); } catch (Throwable e) { Exceptions.throwIfFatal(e); RxJavaCommonPlugins.onError(e); } } SafeObserver(@NonNull Observ... | SafeObserver implements Observer<T>, Disposable { @Override public void onComplete() { if (done) { return; } done = true; if (s == null) { onCompleteNoSubscription(); return; } try { actual.onComplete(); } catch (Throwable e) { Exceptions.throwIfFatal(e); RxJavaCommonPlugins.onError(e); } } SafeObserver(@NonNull Observ... |
@Test public void normal() { TestSingle<Integer> tc = new TestSingle<Integer>(); assertFalse(tc.isDisposed()); assertEquals(0, tc.start); assertTrue(tc.values.isEmpty()); assertTrue(tc.errors.isEmpty()); Single.just(1).subscribe(tc); assertFalse(tc.isDisposed()); assertEquals(1, tc.start); assertEquals(1, tc.values.get... | @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } |
@Test public void dispose() { TestSingle<Integer> tc = new TestSingle<Integer>(); tc.dispose(); assertTrue(tc.isDisposed()); Disposable d = Disposables.empty(); tc.onSubscribe(d); assertTrue(d.isDisposed()); assertEquals(0, tc.start); } | @Override public final void dispose() { DisposableHelper.dispose(s); } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } | DisposableSingleObserver implements SingleObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } |
@Test public void normal() { TestMaybe<Integer> tc = new TestMaybe<Integer>(); assertFalse(tc.isDisposed()); assertEquals(0, tc.start); assertTrue(tc.values.isEmpty()); assertTrue(tc.errors.isEmpty()); assertEquals(0, tc.complete); Maybe.just(1).subscribe(tc); assertFalse(tc.isDisposed()); assertEquals(1, tc.start); as... | @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final boolean isDisposed() { return s.get() == DisposableHelper.DISPOSED; } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } |
@Test public void dispose() { TestMaybe<Integer> tc = new TestMaybe<Integer>(); tc.dispose(); assertTrue(tc.isDisposed()); Disposable d = Disposables.empty(); tc.onSubscribe(d); assertTrue(d.isDisposed()); assertEquals(0, tc.start); } | @Override public final void dispose() { DisposableHelper.dispose(s); } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } | DisposableMaybeObserver implements MaybeObserver<T>, Disposable { @Override public final void dispose() { DisposableHelper.dispose(s); } @Override final void onSubscribe(@NonNull Disposable s); @Override final boolean isDisposed(); @Override final void dispose(); } |
@Test(timeout = 5000) public void complete() { Completable c = Completable.complete(); c.blockingAwait(); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable complete() { return RxJavaObservablePlugins.onAssembly(CompletableEmpty.INSTANCE); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable complete() { return RxJavaObservablePlugins.onAssembly(CompletableEmpty.INSTANCE); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable complete() { return RxJavaObservablePlugins.onAssembly(CompletableEmpty.INSTANCE); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable complete() { return RxJavaObservablePlugins.onAssembly(CompletableEmpty.INSTANCE); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSo... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable complete() { return RxJavaObservablePlugins.onAssembly(CompletableEmpty.INSTANCE); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSo... |
@Test(expected = NullPointerException.class) public void concatNull() { Completable.concatArray((Completable[])null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concatArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap(sources[0]); } return RxJavaObservablePlug... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concatArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concatArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concatArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concatArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap... |
@Test(expected = NullPointerException.class) public void concatIterableNull() { Completable.concat((Iterable<Completable>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concat(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableConcatIterable(sources)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concat(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableConcatIterable(sources... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concat(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableConcatIterable(sources... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concat(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableConcatIterable(sources... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable concat(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableConcatIterable(sources... |
@Test(expected = NullPointerException.class) public void createNull() { Completable.unsafeCreate(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Completable)!"); } return RxJavaObservablePlug... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... |
@Test public void messageVarargs() { CompositeException compositeException = new CompositeException(ex1, ex2, ex3); assertEquals("3 exceptions occurred. ", compositeException.getMessage()); } | @Override @NonNull public String getMessage() { return message; } | CompositeException extends RuntimeException { @Override @NonNull public String getMessage() { return message; } } | CompositeException extends RuntimeException { @Override @NonNull public String getMessage() { return message; } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); } | CompositeException extends RuntimeException { @Override @NonNull public String getMessage() { return message; } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); @NonNull List<Throwable> getExceptions(); @Override @NonNull String getMessage(); @Ove... | CompositeException extends RuntimeException { @Override @NonNull public String getMessage() { return message; } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); @NonNull List<Throwable> getExceptions(); @Override @NonNull String getMessage(); @Ove... |
@Test(timeout = 5000) public void defer() { Completable c = Completable.defer(new Callable<Completable>() { @Override public Completable call() { return normal.completable; } }); normal.assertSubscriptions(0); c.blockingAwait(); normal.assertSubscriptions(1); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new CompletableDefer(completableSupplier)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... |
@Test(expected = NullPointerException.class) public void deferNull() { Completable.defer(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new CompletableDefer(completableSupplier)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable defer(final Callable<? extends CompletableSource> completableSupplier) { ObjectHelper.requireNonNull(completableSupplier, "completableSupplier"); return RxJavaObservablePlugins.onAssembly(new ... |
@Test(expected = NullPointerException.class) public void errorSupplierNull() { Completable.error((Callable<Throwable>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSupplier(errorSupplier)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... |
@Test(expected = NullPointerException.class) public void errorNull() { Completable.error((Throwable)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSupplier(errorSupplier)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable error(final Callable<? extends Throwable> errorSupplier) { ObjectHelper.requireNonNull(errorSupplier, "errorSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableErrorSu... |
@Test(expected = NullPointerException.class) public void fromCallableNull() { Completable.fromCallable(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromCallable(final Callable<?> callable) { ObjectHelper.requireNonNull(callable, "callable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromCallable(callable)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromCallable(final Callable<?> callable) { ObjectHelper.requireNonNull(callable, "callable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromCallable(callable)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromCallable(final Callable<?> callable) { ObjectHelper.requireNonNull(callable, "callable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromCallable(callable)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromCallable(final Callable<?> callable) { ObjectHelper.requireNonNull(callable, "callable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromCallable(callable)); } @Chec... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromCallable(final Callable<?> callable) { ObjectHelper.requireNonNull(callable, "callable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromCallable(callable)); } @Chec... |
@Test(expected = NullPointerException.class) public void fromObservableNull() { Completable.fromObservable(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromObservable(final ObservableSource<T> observable) { ObjectHelper.requireNonNull(observable, "observable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromObservable<T>(observable)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromObservable(final ObservableSource<T> observable) { ObjectHelper.requireNonNull(observable, "observable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromObservabl... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromObservable(final ObservableSource<T> observable) { ObjectHelper.requireNonNull(observable, "observable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromObservabl... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromObservable(final ObservableSource<T> observable) { ObjectHelper.requireNonNull(observable, "observable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromObservabl... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromObservable(final ObservableSource<T> observable) { ObjectHelper.requireNonNull(observable, "observable is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromObservabl... |
@Test(expected = NullPointerException.class) public void fromActionNull() { Completable.fromAction(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromAction(final Action run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromAction(run)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromAction(final Action run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromAction(run)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromAction(final Action run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromAction(run)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromAction(final Action run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromAction(run)); } @CheckReturnValue @SchedulerSuppor... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromAction(final Action run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromAction(run)); } @CheckReturnValue @SchedulerSuppor... |
@Test(expected = NullPointerException.class) public void fromSingleNull() { Completable.fromSingle(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromSingle(final SingleSource<T> single) { ObjectHelper.requireNonNull(single, "single is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromSingle<T>(single)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromSingle(final SingleSource<T> single) { ObjectHelper.requireNonNull(single, "single is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromSingle<T>(single)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromSingle(final SingleSource<T> single) { ObjectHelper.requireNonNull(single, "single is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromSingle<T>(single)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromSingle(final SingleSource<T> single) { ObjectHelper.requireNonNull(single, "single is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromSingle<T>(single)); } @Check... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <T> Completable fromSingle(final SingleSource<T> single) { ObjectHelper.requireNonNull(single, "single is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromSingle<T>(single)); } @Check... |
@Test(expected = NullPointerException.class) public void mergeNull() { Completable.mergeArray((Completable[])null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap(sources[0]); } return RxJavaObservablePlugi... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap(... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap(... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap(... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArray(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } else if (sources.length == 1) { return wrap(... |
@Test(expected = NullPointerException.class) public void mergeIterableNull() { Completable.merge((Iterable<Completable>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable merge(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeIterable(sources)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable merge(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeIterable(sources))... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable merge(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeIterable(sources))... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable merge(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeIterable(sources))... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable merge(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeIterable(sources))... |
@Test public void complexCauses() { Throwable e1 = new Throwable("1"); Throwable e2 = new Throwable("2"); e1.initCause(e2); Throwable e3 = new Throwable("3"); Throwable e4 = new Throwable("4"); e3.initCause(e4); Throwable e5 = new Throwable("5"); Throwable e6 = new Throwable("6"); e5.initCause(e6); CompositeException c... | @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptions) { if (seenCauses.contains(e)) { continue; ... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... |
@Test(expected = NullPointerException.class) public void mergeDelayErrorNull() { Completable.mergeArrayDelayError((Completable[])null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArrayDelayError(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErrorArray(sources)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArrayDelayError(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErrorArray(sour... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArrayDelayError(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErrorArray(sour... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArrayDelayError(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErrorArray(sour... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeArrayDelayError(CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErrorArray(sour... |
@Test(expected = NullPointerException.class) public void mergeDelayErrorIterableNull() { Completable.mergeDelayError((Iterable<Completable>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeDelayError(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErrorIterable(sources)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeDelayError(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErr... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeDelayError(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErr... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeDelayError(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErr... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable mergeDelayError(Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableMergeDelayErr... |
@Test(timeout = 5000) public void never() { final AtomicBoolean onSubscribeCalled = new AtomicBoolean(); final AtomicInteger calls = new AtomicInteger(); Completable.never().subscribe(new CompletableObserver() { @Override public void onSubscribe(Disposable d) { onSubscribeCalled.set(true); } @Override public void onErr... | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable never() { return RxJavaObservablePlugins.onAssembly(CompletableNever.INSTANCE); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable never() { return RxJavaObservablePlugins.onAssembly(CompletableNever.INSTANCE); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable never() { return RxJavaObservablePlugins.onAssembly(CompletableNever.INSTANCE); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable never() { return RxJavaObservablePlugins.onAssembly(CompletableNever.INSTANCE); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSourc... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable never() { return RxJavaObservablePlugins.onAssembly(CompletableNever.INSTANCE); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSourc... |
@Test(timeout = 1500) public void timer() { Completable c = Completable.timer(500, TimeUnit.MILLISECONDS); c.blockingAwait(); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final C... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final C... |
@Test(expected = NullPointerException.class) public void timerUnitNull() { Completable.timer(1, null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final C... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final C... |
@Test(expected = NullPointerException.class) public void timerSchedulerNull() { Completable.timer(1, TimeUnit.SECONDS, null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final C... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public static Completable timer(long delay, TimeUnit unit) { return timer(delay, unit, Schedulers.computation()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final C... |
@Test(expected = NullPointerException.class) public void usingResourceSupplierNull() { Completable.using(null, new Function<Object, Completable>() { @Override public Completable apply(Object v) { return normal.completable; } }, new Consumer<Object>() { @Override public void accept(Object v) { } }); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction, disposer, true); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... |
@Test(expected = NullPointerException.class) public void usingMapperNull() { Completable.using(new Callable<Object>() { @Override public Object call() { return 1; } }, null, new Consumer<Object>() { @Override public void accept(Object v) { } }); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction, disposer, true); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... |
@Test(expected = NullPointerException.class) public void usingDisposeNull() { Completable.using(new Callable<Object>() { @Override public Object call() { return 1; } }, new Function<Object, Completable>() { @Override public Completable apply(Object v) { return normal.completable; } }, null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction, disposer, true); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static <R> Completable using(Callable<R> resourceSupplier, Function<? super R, ? extends CompletableSource> completableFunction, Consumer<? super R> disposer) { return using(resourceSupplier, completableFunction... |
@Test(expected = NullPointerException.class) public void composeNull() { error.completable.compose(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable compose(CompletableTransformer transformer) { return wrap(ObjectHelper.requireNonNull(transformer, "transformer is null").apply(this)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable compose(CompletableTransformer transformer) { return wrap(ObjectHelper.requireNonNull(transformer, "transformer is null").apply(this)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable compose(CompletableTransformer transformer) { return wrap(ObjectHelper.requireNonNull(transformer, "transformer is null").apply(this)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable compose(CompletableTransformer transformer) { return wrap(ObjectHelper.requireNonNull(transformer, "transformer is null").apply(this)); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.N... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable compose(CompletableTransformer transformer) { return wrap(ObjectHelper.requireNonNull(transformer, "transformer is null").apply(this)); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.N... |
@Test public void constructorWithNull() { assertTrue(new CompositeException((Throwable[])null).getExceptions().get(0) instanceof NullPointerException); assertTrue(new CompositeException((Iterable<Throwable>)null).getExceptions().get(0) instanceof NullPointerException); assertTrue(new CompositeException(null, new TestEx... | @NonNull public List<Throwable> getExceptions() { return exceptions; } | CompositeException extends RuntimeException { @NonNull public List<Throwable> getExceptions() { return exceptions; } } | CompositeException extends RuntimeException { @NonNull public List<Throwable> getExceptions() { return exceptions; } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); } | CompositeException extends RuntimeException { @NonNull public List<Throwable> getExceptions() { return exceptions; } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); @NonNull List<Throwable> getExceptions(); @Override @NonNull String getMessage();... | CompositeException extends RuntimeException { @NonNull public List<Throwable> getExceptions() { return exceptions; } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); @NonNull List<Throwable> getExceptions(); @Override @NonNull String getMessage();... |
@Test(expected = NullPointerException.class) public void concatWithNull() { normal.completable.concatWith(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable concatWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(this, other); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable concatWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(this, other); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable concatWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(this, other); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable concatWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(this, other); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable concatWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(this, other); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static ... |
@Test(expected = NullPointerException.class) public void delayUnitNull() { normal.completable.delay(1, null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(f... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(f... |
@Test(expected = NullPointerException.class) public void delaySchedulerNull() { normal.completable.delay(1, TimeUnit.SECONDS, null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(f... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable delay(long delay, TimeUnit unit) { return delay(delay, unit, Schedulers.computation(), false); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(f... |
@Test(expected = NullPointerException.class) public void doOnCompleteNull() { normal.completable.doOnComplete(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... |
@Test(expected = NullPointerException.class) public void doOnDisposeNull() { normal.completable.doOnDispose(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnDispose(Action onDispose) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onDispose); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnDispose(Action onDispose) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onDispose); } ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnDispose(Action onDispose) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onDispose); } ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnDispose(Action onDispose) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onDispose); } ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnDispose(Action onDispose) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onDispose); } ... |
@Test(expected = NullPointerException.class) public void doOnErrorNull() { normal.completable.doOnError(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnError(Consumer<? super Throwable> onError) { return doOnLifecycle(Functions.emptyConsumer(), onError, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnError(Consumer<? super Throwable> onError) { return doOnLifecycle(Functions.emptyConsumer(), onError, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnError(Consumer<? super Throwable> onError) { return doOnLifecycle(Functions.emptyConsumer(), onError, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnError(Consumer<? super Throwable> onError) { return doOnLifecycle(Functions.emptyConsumer(), onError, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnError(Consumer<? super Throwable> onError) { return doOnLifecycle(Functions.emptyConsumer(), onError, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY... |
@Test(expected = NullPointerException.class) public void doOnSubscribeNull() { normal.completable.doOnSubscribe(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnSubscribe(Consumer<? super Disposable> onSubscribe) { return doOnLifecycle(onSubscribe, Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnSubscribe(Consumer<? super Disposable> onSubscribe) { return doOnLifecycle(onSubscribe, Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Fu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnSubscribe(Consumer<? super Disposable> onSubscribe) { return doOnLifecycle(onSubscribe, Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Fu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnSubscribe(Consumer<? super Disposable> onSubscribe) { return doOnLifecycle(onSubscribe, Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Fu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnSubscribe(Consumer<? super Disposable> onSubscribe) { return doOnLifecycle(onSubscribe, Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Fu... |
@Test(timeout = 5000) public void getNormal() { Assert.assertNull(normal.completable.blockingGet()); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } @CheckReturnValue @SchedulerSupport(Scheduler... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } @CheckReturnValue @SchedulerSupport(Scheduler... |
@Test(timeout = 5000) public void getError() { Assert.assertTrue(error.completable.blockingGet() instanceof TestException); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } @CheckReturnValue @SchedulerSupport(Scheduler... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } @CheckReturnValue @SchedulerSupport(Scheduler... |
@Test(expected = NullPointerException.class) public void getNullUnit() { normal.completable.blockingGet(1, null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } @CheckReturnValue @SchedulerSupport(Scheduler... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Throwable blockingGet() { BlockingMultiObserver<Void> observer = new BlockingMultiObserver<Void>(); subscribe(observer); return observer.blockingGetError(); } @CheckReturnValue @SchedulerSupport(Scheduler... |
@Test public void printStackTrace() { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); new CompositeException(new TestException()).printStackTrace(pw); assertTrue(sw.toString().contains("TestException")); } | @Override public void printStackTrace() { printStackTrace(System.err); } | CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } } | CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); } | CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); @NonNull List<Throwable> getExceptions(); @Override @NonNull String getMessage(... | CompositeException extends RuntimeException { @Override public void printStackTrace() { printStackTrace(System.err); } CompositeException(@NonNull Throwable... exceptions); CompositeException(@NonNull Iterable<? extends Throwable> errors); @NonNull List<Throwable> getExceptions(); @Override @NonNull String getMessage(... |
@Test(expected = NullPointerException.class) public void liftNull() { normal.completable.lift(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable lift(final CompletableOperator onLift) { ObjectHelper.requireNonNull(onLift, "onLift is null"); return RxJavaObservablePlugins.onAssembly(new CompletableLift(this, onLift)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable lift(final CompletableOperator onLift) { ObjectHelper.requireNonNull(onLift, "onLift is null"); return RxJavaObservablePlugins.onAssembly(new CompletableLift(this, onLift)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable lift(final CompletableOperator onLift) { ObjectHelper.requireNonNull(onLift, "onLift is null"); return RxJavaObservablePlugins.onAssembly(new CompletableLift(this, onLift)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable lift(final CompletableOperator onLift) { ObjectHelper.requireNonNull(onLift, "onLift is null"); return RxJavaObservablePlugins.onAssembly(new CompletableLift(this, onLift)); } @CheckReturnValu... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable lift(final CompletableOperator onLift) { ObjectHelper.requireNonNull(onLift, "onLift is null"); return RxJavaObservablePlugins.onAssembly(new CompletableLift(this, onLift)); } @CheckReturnValu... |
@Test(expected = NullPointerException.class) public void mergeWithNull() { normal.completable.mergeWith(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable mergeWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return mergeArray(this, other); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable mergeWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return mergeArray(this, other); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable mergeWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return mergeArray(this, other); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable mergeWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return mergeArray(this, other); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Co... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable mergeWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return mergeArray(this, other); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Co... |
@Test(expected = NullPointerException.class) public void observeOnNull() { normal.completable.observeOn(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable observeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableObserveOn(this, scheduler)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable observeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableObserveOn(this, scheduler)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable observeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableObserveOn(this, scheduler)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable observeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableObserveOn(this, scheduler)); } @C... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable observeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableObserveOn(this, scheduler)); } @C... |
@Test(timeout = 5000) public void onErrorComplete() { Completable c = error.completable.onErrorComplete(); c.blockingAwait(); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources)... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources)... |
@Test(expected = NullPointerException.class) public void onErrorCompleteNull() { error.completable.onErrorComplete(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources)... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorComplete() { return onErrorComplete(Functions.alwaysTrue()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources)... |
@Test(expected = NullPointerException.class) public void onErrorResumeNextNull() { error.completable.onErrorResumeNext(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorResumeNext(final Function<? super Throwable, ? extends CompletableSource> errorMapper) { ObjectHelper.requireNonNull(errorMapper, "errorMapper is null"); return RxJavaObservablePlugins.onAssembly(new CompletableResumeNext(this, e... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorResumeNext(final Function<? super Throwable, ? extends CompletableSource> errorMapper) { ObjectHelper.requireNonNull(errorMapper, "errorMapper is null"); return RxJavaObservablePlugins.o... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorResumeNext(final Function<? super Throwable, ? extends CompletableSource> errorMapper) { ObjectHelper.requireNonNull(errorMapper, "errorMapper is null"); return RxJavaObservablePlugins.o... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorResumeNext(final Function<? super Throwable, ? extends CompletableSource> errorMapper) { ObjectHelper.requireNonNull(errorMapper, "errorMapper is null"); return RxJavaObservablePlugins.o... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable onErrorResumeNext(final Function<? super Throwable, ? extends CompletableSource> errorMapper) { ObjectHelper.requireNonNull(errorMapper, "errorMapper is null"); return RxJavaObservablePlugins.o... |
@Test(expected = NullPointerException.class) public void repeatUntilNull() { normal.completable.repeatUntil(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatUntil(BooleanSupplier stop) { return fromObservable(toObservable().repeatUntil(stop)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatUntil(BooleanSupplier stop) { return fromObservable(toObservable().repeatUntil(stop)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatUntil(BooleanSupplier stop) { return fromObservable(toObservable().repeatUntil(stop)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatUntil(BooleanSupplier stop) { return fromObservable(toObservable().repeatUntil(stop)); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final Comp... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatUntil(BooleanSupplier stop) { return fromObservable(toObservable().repeatUntil(stop)); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final Comp... |
@Test(expected = NullPointerException.class) public void repeatWhenNull() { normal.completable.repeatWhen(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatWhen(Function<? super Observable<Object>, ? extends ObservableSource<?>> handler) { return fromObservable(toObservable().repeatWhen(handler)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatWhen(Function<? super Observable<Object>, ? extends ObservableSource<?>> handler) { return fromObservable(toObservable().repeatWhen(handler)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatWhen(Function<? super Observable<Object>, ? extends ObservableSource<?>> handler) { return fromObservable(toObservable().repeatWhen(handler)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatWhen(Function<? super Observable<Object>, ? extends ObservableSource<?>> handler) { return fromObservable(toObservable().repeatWhen(handler)); } @CheckReturnValue @SchedulerSupport(Sched... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatWhen(Function<? super Observable<Object>, ? extends ObservableSource<?>> handler) { return fromObservable(toObservable().repeatWhen(handler)); } @CheckReturnValue @SchedulerSupport(Sched... |
@Test(expected = IllegalArgumentException.class) public void retryNegativeTimes() { normal.completable.retry(-1); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources); @CheckRet... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources); @CheckRet... |
@Test(expected = NullPointerException.class) public void retryPredicateNull() { error.completable.retry((Predicate<Throwable>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources); @CheckRet... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable retry() { return fromObservable(toObservable().retry()); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... sources); @CheckRet... |
@Test public void cyclicRootCause() { RuntimeException te = new RuntimeException() { private static final long serialVersionUID = -8492568224555229753L; Throwable cause; @Override public Throwable initCause(Throwable c) { return this; } @Override public Throwable getCause() { return cause; } }; assertSame(te, new Compo... | @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptions) { if (seenCauses.contains(e)) { continue; ... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... |
@Test(expected = TestException.class) public void periodicDirectThrows() { TestScheduler scheduler = new TestScheduler(); scheduler.schedulePeriodicallyDirect(new Runnable() { @Override public void run() { throw new TestException(); } }, 100, 100, TimeUnit.MILLISECONDS); scheduler.advanceTimeBy(100, TimeUnit.MILLISECON... | @NonNull public Disposable schedulePeriodicallyDirect(@NonNull Runnable run, long initialDelay, long period, @NonNull TimeUnit unit) { final Worker w = createWorker(); final Runnable decoratedRun = RxJavaCommonPlugins.onSchedule(run); PeriodicDirectTask periodicTask = new PeriodicDirectTask(decoratedRun, w); Disposable... | Scheduler { @NonNull public Disposable schedulePeriodicallyDirect(@NonNull Runnable run, long initialDelay, long period, @NonNull TimeUnit unit) { final Worker w = createWorker(); final Runnable decoratedRun = RxJavaCommonPlugins.onSchedule(run); PeriodicDirectTask periodicTask = new PeriodicDirectTask(decoratedRun, w)... | Scheduler { @NonNull public Disposable schedulePeriodicallyDirect(@NonNull Runnable run, long initialDelay, long period, @NonNull TimeUnit unit) { final Worker w = createWorker(); final Runnable decoratedRun = RxJavaCommonPlugins.onSchedule(run); PeriodicDirectTask periodicTask = new PeriodicDirectTask(decoratedRun, w)... | Scheduler { @NonNull public Disposable schedulePeriodicallyDirect(@NonNull Runnable run, long initialDelay, long period, @NonNull TimeUnit unit) { final Worker w = createWorker(); final Runnable decoratedRun = RxJavaCommonPlugins.onSchedule(run); PeriodicDirectTask periodicTask = new PeriodicDirectTask(decoratedRun, w)... | Scheduler { @NonNull public Disposable schedulePeriodicallyDirect(@NonNull Runnable run, long initialDelay, long period, @NonNull TimeUnit unit) { final Worker w = createWorker(); final Runnable decoratedRun = RxJavaCommonPlugins.onSchedule(run); PeriodicDirectTask periodicTask = new PeriodicDirectTask(decoratedRun, w)... |
@Test(timeout = 5000) public void subscribe() throws InterruptedException { final AtomicBoolean complete = new AtomicBoolean(); Completable c = normal.completable .delay(100, TimeUnit.MILLISECONDS) .doOnComplete(new Action() { @Override public void run() { complete.set(true); } }); Disposable d = c.subscribe(); assertF... | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(timeout = 5000) public void subscribeTwoCallbacksNormal() { final AtomicReference<Throwable> err = new AtomicReference<Throwable>(); final AtomicBoolean complete = new AtomicBoolean(); normal.completable.subscribe(new Action() { @Override public void run() { complete.set(true); } }, new Consumer<Throwable>() { @O... | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(timeout = 5000) public void subscribeTwoCallbacksError() { final AtomicReference<Throwable> err = new AtomicReference<Throwable>(); final AtomicBoolean complete = new AtomicBoolean(); error.completable.subscribe(new Action() { @Override public void run() { complete.set(true); } }, new Consumer<Throwable>() { @Ove... | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(expected = NullPointerException.class) public void subscribeTwoCallbacksFirstNull() { normal.completable.subscribe(new Action() { @Override public void run() { } }, null); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(expected = NullPointerException.class) public void subscribeTwoCallbacksSecondNull() { normal.completable.subscribe(new Action() { @Override public void run() { } }, null); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(timeout = 5000) public void subscribeTwoCallbacksCompleteThrows() { List<Throwable> errors = TestCommonHelper.trackPluginErrors(); try { final AtomicReference<Throwable> err = new AtomicReference<Throwable>(); normal.completable.subscribe(new Action() { @Override public void run() { throw new TestException(); } }... | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(timeout = 5000) public void subscribeTwoCallbacksOnErrorThrows() { error.completable.subscribe(new Action() { @Override public void run() { } }, new Consumer<Throwable>() { @Override public void accept(Throwable e) { throw new TestException(); } }); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(timeout = 5000) public void subscribeActionNormal() { final AtomicBoolean run = new AtomicBoolean(); normal.completable.subscribe(new Action() { @Override public void run() { run.set(true); } }); Assert.assertTrue("Not completed", run.get()); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(timeout = 5000) public void subscribeActionError() { final AtomicBoolean run = new AtomicBoolean(); error.completable.subscribe(new Action() { @Override public void run() { run.set(true); } }); Assert.assertFalse("Completed", run.get()); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(expected = NullPointerException.class) public void subscribeActionNull() { normal.completable.subscribe((Action)null); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test public void nullRootCause() { RuntimeException te = new RuntimeException() { private static final long serialVersionUID = -8492568224555229753L; @Override public Throwable getCause() { return null; } }; assertSame(te, new CompositeException(te).getCause().getCause()); assertSame(te, new CompositeException(new Run... | @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptions) { if (seenCauses.contains(e)) { continue; ... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... |
@Test(expected = NullPointerException.class) public void subscribeCompletableSubscriberNull() { normal.completable.subscribe((CompletableObserver)null); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(expected = NullPointerException.class) public void subscribeOnNull() { normal.completable.subscribeOn(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable subscribeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableSubscribeOn(this, scheduler)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable subscribeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableSubscribeOn(this, scheduler)); }... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable subscribeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableSubscribeOn(this, scheduler)); }... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable subscribeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableSubscribeOn(this, scheduler)); }... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.CUSTOM) public final Completable subscribeOn(final Scheduler scheduler) { ObjectHelper.requireNonNull(scheduler, "scheduler is null"); return RxJavaObservablePlugins.onAssembly(new CompletableSubscribeOn(this, scheduler)); }... |
@Test(expected = NullPointerException.class) public void timeoutUnitNull() { normal.completable.timeout(1, null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable am... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable am... |
@Test(expected = NullPointerException.class) public void timeoutSchedulerNull() { normal.completable.timeout(1, TimeUnit.SECONDS, (Scheduler)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable am... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable am... |
@Test(expected = NullPointerException.class) public void timeoutOtherNull() { normal.completable.timeout(1, TimeUnit.SECONDS, (Completable)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable am... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.COMPUTATION) public final Completable timeout(long timeout, TimeUnit unit) { return timeout0(timeout, unit, Schedulers.computation(), null); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable am... |
@Test(expected = NullPointerException.class) public void toNull() { normal.completable.to(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <U> U to(Function<? super Completable, U> converter) { try { return ObjectHelper.requireNonNull(converter, "converter is null").apply(this); } catch (Throwable ex) { Exceptions.throwIfFatal(ex); throw ExceptionHelper.wrapOrThrow(ex); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <U> U to(Function<? super Completable, U> converter) { try { return ObjectHelper.requireNonNull(converter, "converter is null").apply(this); } catch (Throwable ex) { Exceptions.throwIfFatal(ex); throw Exce... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <U> U to(Function<? super Completable, U> converter) { try { return ObjectHelper.requireNonNull(converter, "converter is null").apply(this); } catch (Throwable ex) { Exceptions.throwIfFatal(ex); throw Exce... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <U> U to(Function<? super Completable, U> converter) { try { return ObjectHelper.requireNonNull(converter, "converter is null").apply(this); } catch (Throwable ex) { Exceptions.throwIfFatal(ex); throw Exce... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <U> U to(Function<? super Completable, U> converter) { try { return ObjectHelper.requireNonNull(converter, "converter is null").apply(this); } catch (Throwable ex) { Exceptions.throwIfFatal(ex); throw Exce... |
@Test(timeout = 5000) public void toObservableNormal() { normal.completable.toObservable().blockingForEach(Functions.emptyConsumer()); } | @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(new CompletableToObservable<T>(this)); } | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... |
@Test(timeout = 5000, expected = TestException.class) public void toObservableError() { error.completable.toObservable().blockingForEach(Functions.emptyConsumer()); } | @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(new CompletableToObservable<T>(this)); } | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... | Completable implements CompletableSource { @CheckReturnValue @SuppressWarnings("unchecked") @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> toObservable() { if (this instanceof FuseToObservable) { return ((FuseToObservable<T>)this).fuseToObservable(); } return RxJavaObservablePlugins.onAssembly(... |
@Test(expected = NullPointerException.class) public void toSingleSupplierNull() { normal.completable.toSingle(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingle(final Callable<? extends T> completionValueSupplier) { ObjectHelper.requireNonNull(completionValueSupplier, "completionValueSupplier is null"); return RxJavaObservablePlugins.onAssembly(new CompletableToSingle<T>(this, comple... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingle(final Callable<? extends T> completionValueSupplier) { ObjectHelper.requireNonNull(completionValueSupplier, "completionValueSupplier is null"); return RxJavaObservablePlugins.onAssem... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingle(final Callable<? extends T> completionValueSupplier) { ObjectHelper.requireNonNull(completionValueSupplier, "completionValueSupplier is null"); return RxJavaObservablePlugins.onAssem... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingle(final Callable<? extends T> completionValueSupplier) { ObjectHelper.requireNonNull(completionValueSupplier, "completionValueSupplier is null"); return RxJavaObservablePlugins.onAssem... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingle(final Callable<? extends T> completionValueSupplier) { ObjectHelper.requireNonNull(completionValueSupplier, "completionValueSupplier is null"); return RxJavaObservablePlugins.onAssem... |
@Test(expected = NullPointerException.class) public void toSingleDefaultNull() { normal.completable.toSingleDefault(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingleDefault(final T completionValue) { ObjectHelper.requireNonNull(completionValue, "completionValue is null"); return RxJavaObservablePlugins.onAssembly(new CompletableToSingle<T>(this, null, completionValue)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingleDefault(final T completionValue) { ObjectHelper.requireNonNull(completionValue, "completionValue is null"); return RxJavaObservablePlugins.onAssembly(new CompletableToSingle<T>(this, ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingleDefault(final T completionValue) { ObjectHelper.requireNonNull(completionValue, "completionValue is null"); return RxJavaObservablePlugins.onAssembly(new CompletableToSingle<T>(this, ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingleDefault(final T completionValue) { ObjectHelper.requireNonNull(completionValue, "completionValue is null"); return RxJavaObservablePlugins.onAssembly(new CompletableToSingle<T>(this, ... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Single<T> toSingleDefault(final T completionValue) { ObjectHelper.requireNonNull(completionValue, "completionValue is null"); return RxJavaObservablePlugins.onAssembly(new CompletableToSingle<T>(this, ... |
@Test public void badException() { Throwable e = new BadException(); assertSame(e, new CompositeException(e).getCause().getCause()); assertSame(e, new CompositeException(new RuntimeException(e)).getCause().getCause().getCause()); } | @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptions) { if (seenCauses.contains(e)) { continue; ... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... | CompositeException extends RuntimeException { @Override @NonNull public synchronized Throwable getCause() { if (cause == null) { CompositeExceptionCausalChain localCause = new CompositeExceptionCausalChain(); Set<Throwable> seenCauses = new HashSet<Throwable>(); Throwable chain = localCause; for (Throwable e : exceptio... |
@Test(expected = NullPointerException.class) public void ambArrayNull() { Completable.ambArray((Completable[])null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable ambArray(final CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } if (sources.length == 1) { return wrap(sources[0]); } return RxJavaObservablePlugin... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable ambArray(final CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } if (sources.length == 1) { return wrap(s... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable ambArray(final CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } if (sources.length == 1) { return wrap(s... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable ambArray(final CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } if (sources.length == 1) { return wrap(s... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable ambArray(final CompletableSource... sources) { ObjectHelper.requireNonNull(sources, "sources is null"); if (sources.length == 0) { return complete(); } if (sources.length == 1) { return wrap(s... |
@Test(expected = NullPointerException.class) public void ambIterableNull() { Completable.amb((Iterable<Completable>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable amb(final Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableAmb(null, sources)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable amb(final Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableAmb(null, sources))... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable amb(final Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableAmb(null, sources))... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable amb(final Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableAmb(null, sources))... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable amb(final Iterable<? extends CompletableSource> sources) { ObjectHelper.requireNonNull(sources, "sources is null"); return RxJavaObservablePlugins.onAssembly(new CompletableAmb(null, sources))... |
@Test(expected = NullPointerException.class) public void ambWithNull() { normal.completable.ambWith(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable ambWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return ambArray(this, other); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable ambWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return ambArray(this, other); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable ambWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return ambArray(this, other); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable ambWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return ambArray(this, other); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Comple... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable ambWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return ambArray(this, other); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Comple... |
@Test(expected = NullPointerException.class) public void startWithCompletableNull() { normal.completable.startWith((Completable)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static C... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static C... |
@Test(expected = NullPointerException.class) public void startWithObservableNull() { normal.completable.startWith((Observable<Object>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static C... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable startWith(CompletableSource other) { ObjectHelper.requireNonNull(other, "other is null"); return concatArray(other, this); } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static C... |
@Test public void andThen() { TestObserver<String> to = new TestObserver<String>(); Completable.complete().andThen(Observable.just("foo")).subscribe(to); to.assertValue("foo"); to.assertComplete(); to.assertNoErrors(); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toObservable())); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... |
@Test public void subscribeOneActionThrowFromOnCompleted() { expectUncaughtTestException(new Action() { @Override public void run() { normal.completable.subscribe(new Action() { @Override public void run() { throw new TestException(); } }); } }); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test public void subscribeTwoActionsThrowFromOnError() { expectUncaughtTestException(new Action() { @Override public void run() { error.completable.subscribe( new Action() { @Override public void run() { } }, new Consumer<Throwable>() { @Override public void accept(Throwable throwable) { throw new TestException(); } }... | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test public void testHookCreate() throws Exception { CompletableSource subscriber = mock(CompletableSource.class); Completable create = Completable.unsafeCreate(subscriber); verify(onCreate, times(1)).apply(create); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Completable)!"); } return RxJavaObservablePlug... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable unsafeCreate(CompletableSource source) { ObjectHelper.requireNonNull(source, "source is null"); if (source instanceof Completable) { throw new IllegalArgumentException("Use of unsafeCreate(Com... |
@Test(expected = NullPointerException.class) public void doOnCompletedNull() { normal.completable.doOnComplete(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doOnComplete(Action onComplete) { return doOnLifecycle(Functions.emptyConsumer(), Functions.emptyConsumer(), onComplete, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, Functions.EMPTY_ACTION);... |
@Test public final void testImmediateUnsubscribes() { TestScheduler s = new TestScheduler(); final Scheduler.Worker inner = s.createWorker(); final AtomicInteger counter = new AtomicInteger(0); try { inner.schedule(new Runnable() { @Override public void run() { counter.incrementAndGet(); System.out.println("counter: " ... | @NonNull public abstract Worker createWorker(); | Scheduler { @NonNull public abstract Worker createWorker(); } | Scheduler { @NonNull public abstract Worker createWorker(); } | Scheduler { @NonNull public abstract Worker createWorker(); static long clockDriftTolerance(); @NonNull abstract Worker createWorker(); long now(@NonNull TimeUnit unit); void start(); void shutdown(); @NonNull Disposable scheduleDirect(@NonNull Runnable run); @NonNull Disposable scheduleDirect(@NonNull Runnable run, l... | Scheduler { @NonNull public abstract Worker createWorker(); static long clockDriftTolerance(); @NonNull abstract Worker createWorker(); long now(@NonNull TimeUnit unit); void start(); void shutdown(); @NonNull Disposable scheduleDirect(@NonNull Runnable run); @NonNull Disposable scheduleDirect(@NonNull Runnable run, l... |
@Test(expected = NullPointerException.class) public void doAfterTerminateNull() { normal.completable.doAfterTerminate(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doAfterTerminate(final Action onAfterTerminate) { return doOnLifecycle( Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onAfterTerminate, Functions.EMPTY_ACTION); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doAfterTerminate(final Action onAfterTerminate) { return doOnLifecycle( Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onAfterTerminate, F... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doAfterTerminate(final Action onAfterTerminate) { return doOnLifecycle( Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onAfterTerminate, F... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doAfterTerminate(final Action onAfterTerminate) { return doOnLifecycle( Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onAfterTerminate, F... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable doAfterTerminate(final Action onAfterTerminate) { return doOnLifecycle( Functions.emptyConsumer(), Functions.emptyConsumer(), Functions.EMPTY_ACTION, Functions.EMPTY_ACTION, onAfterTerminate, F... |
@Test public void subscribeEmptyOnError() { expectUncaughtTestException(new Action() { @Override public void run() { error.completable.subscribe(); } }); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test public void subscribeOneActionOnError() { expectUncaughtTestException(new Action() { @Override public void run() { error.completable.subscribe(new Action() { @Override public void run() { } }); } }); } | @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } } | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... | Completable implements CompletableSource { @SchedulerSupport(SchedulerSupport.NONE) public final Disposable subscribe() { EmptyCompletableObserver s = new EmptyCompletableObserver(); subscribe(s); return s; } @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) static Completable ambArray(final CompletableSource... |
@Test(expected = NullPointerException.class) public void andThenCompletableNull() { normal.completable.andThen((Completable)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toObservable())); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... |
@Test(expected = NullPointerException.class) public void andThenFlowableNull() { normal.completable.andThen((Observable<Object>)null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toObservable())); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final <T> Observable<T> andThen(ObservableSource<T> next) { ObjectHelper.requireNonNull(next, "next is null"); return RxJavaObservablePlugins.onAssembly(new ObservableDelaySubscriptionOther<T, Object>(next, toOb... |
@Test(expected = NullPointerException.class) public void fromFutureNull() { Completable.fromFuture(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromFuture(final Future<?> future) { ObjectHelper.requireNonNull(future, "future is null"); return fromAction(Functions.futureAction(future)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromFuture(final Future<?> future) { ObjectHelper.requireNonNull(future, "future is null"); return fromAction(Functions.futureAction(future)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromFuture(final Future<?> future) { ObjectHelper.requireNonNull(future, "future is null"); return fromAction(Functions.futureAction(future)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromFuture(final Future<?> future) { ObjectHelper.requireNonNull(future, "future is null"); return fromAction(Functions.futureAction(future)); } @CheckReturnValue @SchedulerSupport(SchedulerS... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromFuture(final Future<?> future) { ObjectHelper.requireNonNull(future, "future is null"); return fromAction(Functions.futureAction(future)); } @CheckReturnValue @SchedulerSupport(SchedulerS... |
@Test(expected = NullPointerException.class) public void fromRunnableNull() { Completable.fromRunnable(null); } | @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromRunnable(final Runnable run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromRunnable(run)); } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromRunnable(final Runnable run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromRunnable(run)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromRunnable(final Runnable run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromRunnable(run)); } } | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromRunnable(final Runnable run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromRunnable(run)); } @CheckReturnValue @Scheduler... | Completable implements CompletableSource { @CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public static Completable fromRunnable(final Runnable run) { ObjectHelper.requireNonNull(run, "run is null"); return RxJavaObservablePlugins.onAssembly(new CompletableFromRunnable(run)); } @CheckReturnValue @Scheduler... |
@Test public void onSubscribe() { BehaviorSubject<Object> p = BehaviorSubject.create(); Disposable bs = Disposables.empty(); p.onSubscribe(bs); assertFalse(bs.isDisposed()); p.onComplete(); bs = Disposables.empty(); p.onSubscribe(bs); assertTrue(bs.isDisposed()); } | @Override public void onSubscribe(Disposable s) { if (terminalEvent.get() != null) { s.dispose(); } } | BehaviorSubject extends Subject<T> { @Override public void onSubscribe(Disposable s) { if (terminalEvent.get() != null) { s.dispose(); } } } | BehaviorSubject extends Subject<T> { @Override public void onSubscribe(Disposable s) { if (terminalEvent.get() != null) { s.dispose(); } } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); } | BehaviorSubject extends Subject<T> { @Override public void onSubscribe(Disposable s) { if (terminalEvent.get() != null) { s.dispose(); } } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); @CheckReturnValue static BehaviorSubject<T> create(); @CheckReturnValue static BehaviorSubject<... | BehaviorSubject extends Subject<T> { @Override public void onSubscribe(Disposable s) { if (terminalEvent.get() != null) { s.dispose(); } } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); @CheckReturnValue static BehaviorSubject<T> create(); @CheckReturnValue static BehaviorSubject<... |
@Test public void addRemoveRace() { for (int i = 0; i < 500; i++) { final BehaviorSubject<Object> p = BehaviorSubject.create(); final TestObserver<Object> ts = p.test(); Runnable r1 = new Runnable() { @Override public void run() { p.test(); } }; Runnable r2 = new Runnable() { @Override public void run() { ts.cancel(); ... | @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } } | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); } | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); @CheckReturnValue static BehaviorSubject<T> create(); @CheckReturnValue static BehaviorSubject<T... | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); @CheckReturnValue static BehaviorSubject<T> create(); @CheckReturnValue static BehaviorSubject<T... |
@Test public void innerDisposed() { BehaviorSubject.create() .subscribe(new Observer<Object>() { @Override public void onSubscribe(Disposable d) { assertFalse(d.isDisposed()); d.dispose(); assertTrue(d.isDisposed()); } @Override public void onNext(Object value) { } @Override public void onError(Throwable e) { } @Overri... | @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } } | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); } | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); @CheckReturnValue static BehaviorSubject<T> create(); @CheckReturnValue static BehaviorSubject<T... | BehaviorSubject extends Subject<T> { @CheckReturnValue public static <T> BehaviorSubject<T> create() { return new BehaviorSubject<T>(); } @SuppressWarnings("unchecked") BehaviorSubject(); BehaviorSubject(T defaultValue); @CheckReturnValue static BehaviorSubject<T> create(); @CheckReturnValue static BehaviorSubject<T... |
@Test public final void testImmediateUnsubscribes2() { TestScheduler s = new TestScheduler(); final Scheduler.Worker inner = s.createWorker(); try { final AtomicInteger counter = new AtomicInteger(0); final Disposable subscription = inner.schedule(new Runnable() { @Override public void run() { counter.incrementAndGet()... | @NonNull public abstract Worker createWorker(); | Scheduler { @NonNull public abstract Worker createWorker(); } | Scheduler { @NonNull public abstract Worker createWorker(); } | Scheduler { @NonNull public abstract Worker createWorker(); static long clockDriftTolerance(); @NonNull abstract Worker createWorker(); long now(@NonNull TimeUnit unit); void start(); void shutdown(); @NonNull Disposable scheduleDirect(@NonNull Runnable run); @NonNull Disposable scheduleDirect(@NonNull Runnable run, l... | Scheduler { @NonNull public abstract Worker createWorker(); static long clockDriftTolerance(); @NonNull abstract Worker createWorker(); long now(@NonNull TimeUnit unit); void start(); void shutdown(); @NonNull Disposable scheduleDirect(@NonNull Runnable run); @NonNull Disposable scheduleDirect(@NonNull Runnable run, l... |
@Test public void onTerminateCalledWhenCanceled() { final AtomicBoolean didRunOnTerminate = new AtomicBoolean(); UnicastSubject<Integer> us = UnicastSubject.create(Observable.bufferSize(), new Runnable() { @Override public void run() { didRunOnTerminate.set(true); } }); final Disposable subscribe = us.subscribe(); asse... | @CheckReturnValue public static <T> UnicastSubject<T> create() { return new UnicastSubject<T>(bufferSize(), true); } | UnicastSubject extends Subject<T> { @CheckReturnValue public static <T> UnicastSubject<T> create() { return new UnicastSubject<T>(bufferSize(), true); } } | UnicastSubject extends Subject<T> { @CheckReturnValue public static <T> UnicastSubject<T> create() { return new UnicastSubject<T>(bufferSize(), true); } UnicastSubject(int capacityHint, boolean delayError); UnicastSubject(int capacityHint, Runnable onTerminate); UnicastSubject(int capacityHint, Runnable onTerminate... | UnicastSubject extends Subject<T> { @CheckReturnValue public static <T> UnicastSubject<T> create() { return new UnicastSubject<T>(bufferSize(), true); } UnicastSubject(int capacityHint, boolean delayError); UnicastSubject(int capacityHint, Runnable onTerminate); UnicastSubject(int capacityHint, Runnable onTerminate... | UnicastSubject extends Subject<T> { @CheckReturnValue public static <T> UnicastSubject<T> create() { return new UnicastSubject<T>(bufferSize(), true); } UnicastSubject(int capacityHint, boolean delayError); UnicastSubject(int capacityHint, Runnable onTerminate); UnicastSubject(int capacityHint, Runnable onTerminate... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.