commit | f490dd15b4b139c5343de8f601445c072bc20007 | [log] [tgz] |
---|---|---|
author | Gary D. Gregory <ggregory@apache.org> | Tue Aug 25 08:08:44 2015 +0000 |
committer | Gary D. Gregory <ggregory@apache.org> | Tue Aug 25 08:08:44 2015 +0000 |
tree | 333290e23ef9566e1ee5adc59588be167d2c1853 | |
parent | 2155a82edc9f403bd0cd850a5b491b3d7bd8a47f [diff] |
Better JUnit assert message. git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpasyncclient/trunk@1697597 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java b/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java index f0a6b26..34fad27 100644 --- a/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java +++ b/httpasyncclient/src/test/java/org/apache/http/nio/client/integration/TestHttpAsyncPrematureTermination.java
@@ -306,7 +306,7 @@ 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);