diff options
Diffstat (limited to 'certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java')
-rw-r--r-- | certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java index 60c2e93d..a109749b 100644 --- a/certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java +++ b/certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java @@ -106,18 +106,18 @@ class HttpClientTest { //when //then assertThatExceptionOfType(CertServiceApiResponseException.class) - .isThrownBy(()->httpClient.retrieveCertServiceData(CA_NAME, CSR, "")); + .isThrownBy(() -> httpClient.retrieveCertServiceData(CA_NAME, CSR, "")); } @Test - void shouldThrowHttpClientException_WhenCannotExecuteRequestToAPI() throws Exception { + void shouldThrowHttpClientException_WhenCannotExecuteRequestToApi() throws Exception { //given when(closeableHttpClient.execute(any(HttpGet.class))).thenThrow(IOException.class); //when //then assertThatExceptionOfType(HttpClientException.class) - .isThrownBy(()->httpClient.retrieveCertServiceData(CA_NAME, CSR, "")); + .isThrownBy(() -> httpClient.retrieveCertServiceData(CA_NAME, CSR, "")); } @Test @@ -129,7 +129,7 @@ class HttpClientTest { //when //then assertThatExceptionOfType(HttpClientException.class) - .isThrownBy(()->httpClient.retrieveCertServiceData(CA_NAME, CSR, "")); + .isThrownBy(() -> httpClient.retrieveCertServiceData(CA_NAME, CSR, "")); } private void mockServerResponse(int serverCodeResponse, String stringResponse) |