Search in sources :

Example 1 with ObserverFullArbiter

use of io.reactivex.internal.disposables.ObserverFullArbiter in project RxJava by ReactiveX.

the class ObserverFullArbiterTest method errorAfterCancel.

@Test
public void errorAfterCancel() {
    ObserverFullArbiter<Integer> fa = new ObserverFullArbiter<Integer>(new TestObserver<Integer>(), null, 128);
    Disposable bs = Disposables.empty();
    fa.dispose();
    List<Throwable> errors = TestHelper.trackPluginErrors();
    try {
        fa.onError(new TestException(), bs);
        TestHelper.assertUndeliverable(errors, 0, TestException.class);
    } finally {
        RxJavaPlugins.reset();
    }
}
Also used : ObserverFullArbiter(io.reactivex.internal.disposables.ObserverFullArbiter) TestException(io.reactivex.exceptions.TestException) Test(org.junit.Test)

Aggregations

TestException (io.reactivex.exceptions.TestException)1 ObserverFullArbiter (io.reactivex.internal.disposables.ObserverFullArbiter)1 Test (org.junit.Test)1