From cc95aa4f9966f014f45e32f177bf622b3ef7a8b7 Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Mon, 10 Sep 2018 14:47:40 +0800 Subject: Correted UT Coverage Issues Change-Id: Id89d4c600683646958e7e0b4b2982506e1bf7db4 Issue-ID: HOLMES-159 Signed-off-by: GuangrongFu --- .../java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rulemgt/src/main/java/org') diff --git a/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java b/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java index 6c0d732..68314e1 100644 --- a/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java +++ b/rulemgt/src/main/java/org/onap/holmes/rulemgt/dcae/DcaeConfigurationPolling.java @@ -14,6 +14,7 @@ package org.onap.holmes.rulemgt.dcae; import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonDeserializationContext; @@ -114,7 +115,7 @@ public class DcaeConfigurationPolling implements Runnable { httpClient = HttpsUtils.getHttpClient(HttpsUtils.DEFUALT_TIMEOUT); HttpResponse httpResponse = HttpsUtils.get(httpGet, headers, httpClient); String response = HttpsUtils.extractResponseEntity(httpResponse); - return JSON.parseObject(response, RuleQueryListResponse.class); + return JSONObject.parseObject(response, RuleQueryListResponse.class); } finally { httpGet.releaseConnection(); closeHttpClient(httpClient); -- cgit 1.2.3-korg