@@ -66,6 +66,7 @@ public void testFailsOnNullHandlerSupplier() {
66
66
@ Test (groups = "standalone" )
67
67
public void testSuccessfulCompletion () throws Exception {
68
68
69
+ @ SuppressWarnings ("unchecked" )
69
70
final AsyncHandler <Object > handler = mock (AsyncHandler .class );
70
71
when (handler .onCompleted ()).thenReturn (handler );
71
72
@@ -106,6 +107,7 @@ public void testSuccessfulCompletion() throws Exception {
106
107
@ Test (groups = "standalone" )
107
108
public void testSuccessfulCompletionWithProgress () throws Exception {
108
109
110
+ @ SuppressWarnings ("unchecked" )
109
111
final ProgressAsyncHandler <Object > handler = mock (ProgressAsyncHandler .class );
110
112
when (handler .onCompleted ()).thenReturn (handler );
111
113
final InOrder inOrder = inOrder (handler );
@@ -171,6 +173,7 @@ public void testNewRequestForEachSubscription() throws Exception {
171
173
public void testErrorPropagation () throws Exception {
172
174
173
175
final RuntimeException expectedException = new RuntimeException ("expected" );
176
+ @ SuppressWarnings ("unchecked" )
174
177
final AsyncHandler <Object > handler = mock (AsyncHandler .class );
175
178
when (handler .onCompleted ()).thenReturn (handler );
176
179
final InOrder inOrder = inOrder (handler );
@@ -214,6 +217,7 @@ public void testErrorPropagation() throws Exception {
214
217
public void testErrorInOnCompletedPropagation () throws Exception {
215
218
216
219
final RuntimeException expectedException = new RuntimeException ("expected" );
220
+ @ SuppressWarnings ("unchecked" )
217
221
final AsyncHandler <Object > handler = mock (AsyncHandler .class );
218
222
when (handler .onCompleted ()).thenThrow (expectedException );
219
223
@@ -243,6 +247,7 @@ public void testErrorInOnThrowablePropagation() throws Exception {
243
247
244
248
final RuntimeException processingException = new RuntimeException ("processing" );
245
249
final RuntimeException thrownException = new RuntimeException ("thrown" );
250
+ @ SuppressWarnings ("unchecked" )
246
251
final AsyncHandler <Object > handler = mock (AsyncHandler .class );
247
252
doThrow (thrownException ).when (handler ).onThrowable (processingException );
248
253
@@ -296,6 +301,7 @@ public State onStatusReceived(HttpResponseStatus status) {
296
301
297
302
@ Test (groups = "standalone" )
298
303
public void testUnsubscribe () throws Exception {
304
+ @ SuppressWarnings ("unchecked" )
299
305
final AsyncHandler <Object > handler = mock (AsyncHandler .class );
300
306
final Future <?> future = mock (Future .class );
301
307
final AtomicReference <AsyncHandler <?>> bridgeRef = new AtomicReference <>();
0 commit comments