|
16 | 16 |
|
17 | 17 | package io.reactivex.plugins; |
18 | 18 |
|
| 19 | +import static org.junit.Assert.*; |
| 20 | + |
| 21 | +import java.io.IOException; |
| 22 | +import java.lang.Thread.UncaughtExceptionHandler; |
| 23 | +import java.lang.reflect.*; |
| 24 | +import java.util.*; |
| 25 | +import java.util.concurrent.*; |
| 26 | +import java.util.concurrent.atomic.*; |
| 27 | + |
| 28 | +import org.junit.*; |
| 29 | +import org.reactivestreams.*; |
| 30 | + |
19 | 31 | import io.reactivex.*; |
| 32 | +import io.reactivex.Observable; |
| 33 | +import io.reactivex.Observer; |
20 | 34 | import io.reactivex.Scheduler.Worker; |
21 | | -import io.reactivex.disposables.Disposable; |
22 | | -import io.reactivex.disposables.Disposables; |
| 35 | +import io.reactivex.disposables.*; |
23 | 36 | import io.reactivex.exceptions.TestException; |
24 | 37 | import io.reactivex.flowables.ConnectableFlowable; |
25 | | -import io.reactivex.functions.BiFunction; |
26 | | -import io.reactivex.functions.BooleanSupplier; |
27 | | -import io.reactivex.functions.Consumer; |
28 | | -import io.reactivex.functions.Function; |
| 38 | +import io.reactivex.functions.*; |
29 | 39 | import io.reactivex.internal.functions.Functions; |
30 | 40 | import io.reactivex.internal.operators.completable.CompletableError; |
31 | 41 | import io.reactivex.internal.operators.flowable.FlowableRange; |
|
38 | 48 | import io.reactivex.observables.ConnectableObservable; |
39 | 49 | import io.reactivex.parallel.ParallelFlowable; |
40 | 50 | import io.reactivex.schedulers.Schedulers; |
41 | | -import org.junit.*; |
42 | | -import org.reactivestreams.Subscriber; |
43 | | -import org.reactivestreams.Subscription; |
44 | | - |
45 | | -import java.io.IOException; |
46 | | -import java.lang.Thread.UncaughtExceptionHandler; |
47 | | -import java.lang.reflect.InvocationTargetException; |
48 | | -import java.lang.reflect.Method; |
49 | | -import java.util.ArrayList; |
50 | | -import java.util.List; |
51 | | -import java.util.concurrent.Callable; |
52 | | -import java.util.concurrent.CountDownLatch; |
53 | | -import java.util.concurrent.ThreadFactory; |
54 | | -import java.util.concurrent.atomic.AtomicInteger; |
55 | | -import java.util.concurrent.atomic.AtomicReference; |
56 | | - |
57 | | -import static org.junit.Assert.*; |
58 | 51 |
|
59 | 52 | public class RxJavaPluginsTest { |
60 | 53 |
|
@@ -1178,8 +1171,10 @@ public void uncaughtException(Thread t, Throwable e) { |
1178 | 1171 |
|
1179 | 1172 | /** |
1180 | 1173 | * Ensure set*() accepts a consumers/functions with wider bounds |
| 1174 | + * @throws Exception on error |
1181 | 1175 | */ |
1182 | 1176 | @Test |
| 1177 | + @SuppressWarnings("rawtypes") |
1183 | 1178 | public void onErrorWithSuper() throws Exception { |
1184 | 1179 | try { |
1185 | 1180 | Consumer<? super Throwable> errorHandler = new Consumer<Throwable>() { |
|
0 commit comments