Skip to content

Commit a0e0edf

Browse files
committed
Upgrade rxjava 1.2.1
1 parent 7f3370b commit a0e0edf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

extras/rxjava/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<dependency>
1313
<groupId>io.reactivex</groupId>
1414
<artifactId>rxjava</artifactId>
15-
<version>1.0.14</version>
15+
<version>1.2.1</version>
1616
</dependency>
1717
</dependencies>
1818
</project>

extras/rxjava/src/test/java/org/asynchttpclient/extras/rxjava/single/AsyncHttpSingleTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public void testFailsOnNullHandlerSupplier() {
6666
@Test(groups = "standalone")
6767
public void testSuccessfulCompletion() throws Exception {
6868

69+
@SuppressWarnings("unchecked")
6970
final AsyncHandler<Object> handler = mock(AsyncHandler.class);
7071
when(handler.onCompleted()).thenReturn(handler);
7172

@@ -106,6 +107,7 @@ public void testSuccessfulCompletion() throws Exception {
106107
@Test(groups = "standalone")
107108
public void testSuccessfulCompletionWithProgress() throws Exception {
108109

110+
@SuppressWarnings("unchecked")
109111
final ProgressAsyncHandler<Object> handler = mock(ProgressAsyncHandler.class);
110112
when(handler.onCompleted()).thenReturn(handler);
111113
final InOrder inOrder = inOrder(handler);
@@ -171,6 +173,7 @@ public void testNewRequestForEachSubscription() throws Exception {
171173
public void testErrorPropagation() throws Exception {
172174

173175
final RuntimeException expectedException = new RuntimeException("expected");
176+
@SuppressWarnings("unchecked")
174177
final AsyncHandler<Object> handler = mock(AsyncHandler.class);
175178
when(handler.onCompleted()).thenReturn(handler);
176179
final InOrder inOrder = inOrder(handler);
@@ -214,6 +217,7 @@ public void testErrorPropagation() throws Exception {
214217
public void testErrorInOnCompletedPropagation() throws Exception {
215218

216219
final RuntimeException expectedException = new RuntimeException("expected");
220+
@SuppressWarnings("unchecked")
217221
final AsyncHandler<Object> handler = mock(AsyncHandler.class);
218222
when(handler.onCompleted()).thenThrow(expectedException);
219223

@@ -243,6 +247,7 @@ public void testErrorInOnThrowablePropagation() throws Exception {
243247

244248
final RuntimeException processingException = new RuntimeException("processing");
245249
final RuntimeException thrownException = new RuntimeException("thrown");
250+
@SuppressWarnings("unchecked")
246251
final AsyncHandler<Object> handler = mock(AsyncHandler.class);
247252
doThrow(thrownException).when(handler).onThrowable(processingException);
248253

@@ -296,6 +301,7 @@ public State onStatusReceived(HttpResponseStatus status) {
296301

297302
@Test(groups = "standalone")
298303
public void testUnsubscribe() throws Exception {
304+
@SuppressWarnings("unchecked")
299305
final AsyncHandler<Object> handler = mock(AsyncHandler.class);
300306
final Future<?> future = mock(Future.class);
301307
final AtomicReference<AsyncHandler<?>> bridgeRef = new AtomicReference<>();

0 commit comments

Comments
 (0)