hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1672851 - /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
Date Sat, 11 Apr 2015 09:23:49 GMT
Author: olegk
Date: Sat Apr 11 09:23:49 2015
New Revision: 1672851

URL: http://svn.apache.org/r1672851
Log:
Tweaked test case

Modified:
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java?rev=1672851&r1=1672850&r2=1672851&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPipelining.java
Sat Apr 11 09:23:49 2015
@@ -211,7 +211,8 @@ public class TestHttpAsyncPipelining ext
                 future.get();
             } catch (ExecutionException ex) {
                 final Throwable cause = ex.getCause();
-                Assert.assertTrue(cause instanceof ConnectionClosedException);
+                Assert.assertNotNull(cause);
+                Assert.assertEquals(cause.getClass(), ConnectionClosedException.class);
             }
             Assert.assertTrue(c1.isDone());
             Assert.assertNotNull(c1.getResult());



Mime
View raw message