hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1697597 - /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
Date Tue, 25 Aug 2015 08:08:44 GMT
Author: ggregory
Date: Tue Aug 25 08:08:44 2015
New Revision: 1697597

URL: http://svn.apache.org/r1697597
Log:
Better JUnit assert message.

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

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java?rev=1697597&r1=1697596&r2=1697597&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
Tue Aug 25 08:08:44 2015
@@ -306,7 +306,7 @@ public class TestHttpAsyncPrematureTermi
             future.get();
             Assert.fail();
         } catch (ExecutionException e) {
-            Assert.assertTrue(e.getCause() instanceof UnknownHostException);
+            Assert.assertTrue(e.toString(), e.getCause() instanceof UnknownHostException);
         }
         this.connMgr.shutdown(1000);
 



Mime
View raw message