From ebf24c65dfb62f884f9ea01a9dd91cda7314023e Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 1 May 2010 15:54:06 +0000 Subject: [PATCH] No point catching an Exception only to rethrow it - just let JUnit handle it git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@940063 13f79535-47bb-0310-9956-ffa450edef68 --- .../http/client/cache/impl/TestProtocolRequirements.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java b/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java index f983743ab..c03db9c92 100644 --- a/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java +++ b/httpclient-cache/src/test/java/org/apache/http/client/cache/impl/TestProtocolRequirements.java @@ -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();