aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/pnfsimulator/src
diff options
context:
space:
mode:
authorMarcin Migdal <marcin.migdal@nokia.com>2018-08-06 10:17:35 +0200
committerMarcin Migdal <marcin.migdal@nokia.com>2018-08-06 10:18:25 +0200
commit6a7198e0cc460b0e9bf3b36c5b83da836a0cb1df (patch)
treead5aa0deb32ed887f41bf44ba271bedab6719522 /test/mocks/pnfsimulator/src
parentcbce0a5fc41f4d168a0a8aa37a98fe3e22076c50 (diff)
Preparing simulator for INT-607
Change-Id: If959c642cab71694f3a8e49d8d561a870159eacc Issue-ID: INT-607 Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
Diffstat (limited to 'test/mocks/pnfsimulator/src')
-rw-r--r--test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java b/test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java
index c38ac3efa..291e9d996 100644
--- a/test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java
+++ b/test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java
@@ -33,10 +33,6 @@ public class HttpClientAdapterImpl implements HttpClientAdapter {
private HttpClient client;
- public HttpClientAdapterImpl(HttpClient client) {
- this.client = client;
- }
-
public HttpClientAdapterImpl() {
this.client = HttpClientBuilder
.create()
@@ -55,6 +51,10 @@ public class HttpClientAdapterImpl implements HttpClientAdapter {
}
}
+ HttpClientAdapterImpl(HttpClient client) {
+ this.client = client;
+ }
+
private HttpPost createRequest(String content, String url) throws UnsupportedEncodingException {
HttpPost request = new HttpPost(url);
StringEntity stringEntity = new StringEntity(content);