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();
}
}
Aggregations