<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>
private HttpClient client;
- public HttpClientAdapterImpl(HttpClient client) {
- this.client = client;
- }
-
public HttpClientAdapterImpl() {
this.client = HttpClientBuilder
.create()
}
}
+ 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);