Refactor testcase

This commit is contained in:
niranjan ghule 2022-05-08 10:03:44 +05:30 committed by Oleg Kalnichevski
parent daac18619a
commit 34327ae83e
1 changed files with 1 additions and 1 deletions

View File

@ -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)),