summaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java
diff options
context:
space:
mode:
authorkjaniak <kornel.janiak@nokia.com>2020-06-17 09:31:08 +0200
committerkjaniak <kornel.janiak@nokia.com>2020-06-23 16:11:57 +0200
commitffa2b75513bac0ac7aa39bdb6d0b77f751735c5e (patch)
tree352ce2e8593cfb0ce5d99f0e7dd2111ed923fc83 /certServiceClient/src/test/java/org/onap/aaf/certservice/client/httpclient/HttpClientTest.java
parent7feb6ab1d172070c1532106ff699eb99be33c826 (diff)
Move ArtifcatsCreationProvider one level higher
Code style cleanup (warnings from checkstyle). Issue-ID: AAF-1152 Signed-off-by: kjaniak <kornel.janiak@nokia.com> Change-Id: I0a8bbd998cd6aed4cf818ffe10c7fbffe99e9d22
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.java8
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)