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:
parent
a5814c279c
commit
ebf24c65df
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue