Refactor testcase
This commit is contained in:
parent
daac18619a
commit
34327ae83e
|
@ -134,7 +134,7 @@ public class TestCloseableHttpClient {
|
||||||
|
|
||||||
Mockito.when(handler.handleResponse(response)).thenThrow(new IOException());
|
Mockito.when(handler.handleResponse(response)).thenThrow(new IOException());
|
||||||
|
|
||||||
final IOException exception = Assertions.assertThrows(IOException.class, () ->
|
Assertions.assertThrows(IOException.class, () ->
|
||||||
client.execute(httpget, handler));
|
client.execute(httpget, handler));
|
||||||
Mockito.verify(client).doExecute(
|
Mockito.verify(client).doExecute(
|
||||||
Mockito.eq(new HttpHost("https", "somehost", 444)),
|
Mockito.eq(new HttpHost("https", "somehost", 444)),
|
||||||
|
|
Loading…
Reference in New Issue