Preparing simulator for INT-607 07/59107/1
authorMarcin Migdal <marcin.migdal@nokia.com>
Mon, 6 Aug 2018 08:17:35 +0000 (10:17 +0200)
committerMarcin Migdal <marcin.migdal@nokia.com>
Mon, 6 Aug 2018 08:18:25 +0000 (10:18 +0200)
Change-Id: If959c642cab71694f3a8e49d8d561a870159eacc
Issue-ID: INT-607
Signed-off-by: Marcin Migdal <marcin.migdal@nokia.com>
test/mocks/pnfsimulator/pom.xml
test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java

index b71af20..0136a27 100644 (file)
       <artifactId>jnc</artifactId>
       <version>1.0</version>
     </dependency>
-    <dependency>
-      <groupId>org.onosproject</groupId>
-      <artifactId>jnc</artifactId>
-      <version>1.0</version>
-    </dependency>
 
     <dependency>
       <groupId>org.junit.jupiter</groupId>
       <version>${junit.vintage.version}</version>
       <scope>test</scope>
     </dependency>
-
     <dependency>
       <groupId>org.assertj</groupId>
       <artifactId>assertj-core</artifactId>
       <version>3.9.1</version>
       <scope>test</scope>
     </dependency>
-
     <dependency>
       <groupId>org.apache.sshd</groupId>
       <artifactId>sshd-core</artifactId>
       <version>0.9.0</version>
       <scope>test</scope>
     </dependency>
-
     <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-core</artifactId>
index c38ac3e..291e9d9 100644 (file)
@@ -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);