aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java
diff options
context:
space:
mode:
authorSravanKumarGunda <sravan.kumar1@huawei.com>2020-07-30 19:34:57 +0530
committerSravanKumarGunda <sravan.kumar1@huawei.com>2020-08-18 16:43:06 +0530
commite2ce0d5bf9476134ba5427496c9d20089ca856cb (patch)
treeabcabd094f2a92fabe4cee02236e5fde2cdf208e /vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java
parent87abb288ba1e107fb75148effd967420b6c76148 (diff)
Code Improvements-Vnfsdk-refrepo sonar issue fixes
Signed-off-by: SravanKumarGunda <sravan.kumar1@huawei.com> Issue-ID: VNFSDK-608 Change-Id: Ifba4c2f804786b40305c562460071ef430164de2
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java')
-rw-r--r--vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java
index 177baa93..4be3120c 100644
--- a/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java
+++ b/vnfmarket-be/vnf-sdk-marketplace/src/test/java/org/onap/vnfsdk/marketplace/rest/RestfulClientTest.java
@@ -44,17 +44,17 @@ public class RestfulClientTest {
@Test
public void testGet() {
- RestfulClient.get("172.11.10.22,1212", 1211, "http://localhost");
+ assertNotNull(RestfulClient.get("172.11.10.22,1212", 1211, "http://localhost"));
}
@Test
public void testPost() {
- RestfulClient.post("172.11.10.22,1212", 1211, "http://localhost", null);
+ assertNotNull(RestfulClient.post("172.11.10.22,1212", 1211, "http://localhost", null));
}
@Test
public void testDelete() {
- RestfulClient.delete("172.11.10.22,1212", 1211, "http://localhost");
+ assertNotNull(RestfulClient.delete("172.11.10.22,1212", 1211, "http://localhost"));
}
@Test
@@ -69,7 +69,7 @@ public class RestfulClientTest {
@Test
public void testExecuteHttp() throws Exception{
- RestfulClient.executeHttp(PUT, "172.11.10.22,1212", 1211, "http://localhost", null);
+ assertNotNull(RestfulClient.executeHttp(PUT, "172.11.10.22,1212", 1211, "http://localhost", null));
/*HttpResponse httpResponse = mock(HttpResponse.class);
CloseableHttpClient httpclient= mock(CloseableHttpClient.class);
HttpEntity httpEntity= mock(HttpEntity.class);