diff options
Diffstat (limited to 'test/mocks/pnfsimulator')
-rw-r--r-- | test/mocks/pnfsimulator/pom.xml | 8 | ||||
-rw-r--r-- | test/mocks/pnfsimulator/src/main/java/org/onap/pnfsimulator/simulator/client/HttpClientAdapterImpl.java | 8 |
2 files changed, 4 insertions, 12 deletions
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 @@ <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> @@ -141,21 +136,18 @@ <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> 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); |