Search in sources :

Example 1 with ParallelInvalid

use of io.reactivex.rxjava3.parallel.ParallelInvalid in project RxJava by ReactiveX.

the class ParallelCollectorTest method doubleError.

@Test
public void doubleError() {
    List<Throwable> errors = TestHelper.trackPluginErrors();
    try {
        new ParallelInvalid().collect(Collectors.toList()).test().assertFailure(TestException.class);
        assertFalse(errors.isEmpty());
        for (Throwable ex : errors) {
            assertTrue(ex.toString(), ex.getCause() instanceof TestException);
        }
    } finally {
        RxJavaPlugins.reset();
    }
}
Also used : ParallelInvalid(io.reactivex.rxjava3.parallel.ParallelInvalid) TestException(io.reactivex.rxjava3.exceptions.TestException) Test(org.junit.Test)

Aggregations

TestException (io.reactivex.rxjava3.exceptions.TestException)1 ParallelInvalid (io.reactivex.rxjava3.parallel.ParallelInvalid)1 Test (org.junit.Test)1