hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r940063 - /httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java
Date Sat, 01 May 2010 15:54:06 GMT
Author: sebb
Date: Sat May  1 15:54:06 2010
New Revision: 940063

URL: http://svn.apache.org/viewvc?rev=940063&view=rev
Log:
No point catching an Exception only to rethrow it - just let JUnit handle it

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java?rev=940063&r1=940062&r2=940063&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java
Sat May  1 15:54:06 2010
@@ -2397,12 +2397,7 @@ public class TestProtocolRequirements {
         replayMocks();
         request = new BasicHttpRequest("GET", "/thing", HTTP_1_1);
 
-        HttpResponse result = null;
-        try {
-            result = impl.execute(host, request);
-        } catch (IOException e) {
-            Assert.fail("Should not have gotten this exception.");
-        }
+        HttpResponse result = impl.execute(host, request);
 
         verifyMocks();
 



Mime
View raw message