From 6a7198e0cc460b0e9bf3b36c5b83da836a0cb1df Mon Sep 17 00:00:00 2001 From: Marcin Migdal Date: Mon, 6 Aug 2018 10:17:35 +0200 Subject: Preparing simulator for INT-607 Change-Id: If959c642cab71694f3a8e49d8d561a870159eacc Issue-ID: INT-607 Signed-off-by: Marcin Migdal --- test/mocks/pnfsimulator/pom.xml | 8 -------- .../onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java | 8 ++++---- 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'test/mocks/pnfsimulator') diff --git a/test/mocks/pnfsimulator/pom.xml b/test/mocks/pnfsimulator/pom.xml index b71af2032..0136a276c 100644 --- a/test/mocks/pnfsimulator/pom.xml +++ b/test/mocks/pnfsimulator/pom.xml @@ -111,11 +111,6 @@ jnc 1.0 - - org.onosproject - jnc - 1.0 - org.junit.jupiter @@ -141,21 +136,18 @@ ${junit.vintage.version} test - org.assertj assertj-core 3.9.1 test - org.apache.sshd sshd-core 0.9.0 test - org.mockito mockito-core 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); -- cgit 1.2.3-korg