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
This commit is contained in:
Sebastian Bazley 2010-05-01 15:54:06 +00:00
parent a5814c279c
commit ebf24c65df
1 changed files with 1 additions and 6 deletions

View File

@ -2397,12 +2397,7 @@ public class TestProtocolRequirements {
replayMocks(); replayMocks();
request = new BasicHttpRequest("GET", "/thing", HTTP_1_1); request = new BasicHttpRequest("GET", "/thing", HTTP_1_1);
HttpResponse result = null; HttpResponse result = impl.execute(host, request);
try {
result = impl.execute(host, request);
} catch (IOException e) {
Assert.fail("Should not have gotten this exception.");
}
verifyMocks(); verifyMocks();