diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-11-24 12:56:32 +0100 |
---|---|---|
committer | Zebek Bogumil <bogumil.zebek@nokia.com> | 2020-12-02 13:20:29 +0100 |
commit | f9ff1605045ad31e52fffac2da25f7195d5c7455 (patch) | |
tree | 5b47ef4e46165fefdcb38cff3ac62902df8beadb /sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java | |
parent | d2b10d0697934a82868878c6027962e5cb5d1882 (diff) |
Improve code quality
- fix sonars
- remove potential NullPointerException when HttpClient cannot be created for SSL
- extract code to separate classes
Issue-ID: SDC-3388
Signed-off-by: Zebek Bogumil <bogumil.zebek@nokia.com>
Change-Id: Ic42bc638fddf83a4f3e1944bedf3cc2b92012e5e
Diffstat (limited to 'sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java')
-rw-r--r-- | sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java b/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java index c52910d..6ff0f9b 100644 --- a/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java +++ b/sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java @@ -115,7 +115,7 @@ public class SdcConnectorClientTest { doAnswer(new Answer<Pair<HttpAsdcResponse, CloseableHttpResponse>>() { @Override public Pair<HttpAsdcResponse, CloseableHttpResponse> answer(InvocationOnMock invocation) throws Throwable { - lastHttpEntity = invocation.getArgumentAt(1, HttpEntity.class); + lastHttpEntity = invocation.getArgument(1, HttpEntity.class); return mockPair; } }).when(httpClient).postRequest(Mockito.eq(AsdcUrls.POST_FOR_TOPIC_REGISTRATION), Mockito.any(HttpEntity.class), |