aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/test
diff options
context:
space:
mode:
authorpriyanka.akhade <priyanka.akhade@huawei.com>2020-03-04 14:21:12 +0000
committerpriyanka.akhade <priyanka.akhade@huawei.com>2020-03-04 14:21:12 +0000
commitcf1ab5db1033e403dfc839d5fbbe0580be1d497b (patch)
tree3396e8fc8e02ae17e457aa9212a1759e51d01641 /framework/src/test
parent92d3092901ab1866766953e5f8d74bacf27bbc8f (diff)
Resolved JsonElement issue for grpc server and other classes
Issue-ID: CLI-247 Signed-off-by: priyanka.akhade <priyanka.akhade@huawei.com> Change-Id: Ifcfba782ec6454f58d1df11e6ab7db3e1a04d17b
Diffstat (limited to 'framework/src/test')
-rw-r--r--framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultTest.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultTest.java b/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultTest.java
index 97fc9e01..d5d04888 100644
--- a/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultTest.java
+++ b/framework/src/test/java/org/onap/cli/fw/output/OnapCommandResultTest.java
@@ -32,7 +32,6 @@ import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
public class OnapCommandResultTest {
- private static Gson gson = new GsonBuilder().serializeNulls().create();
@Test
@Ignore
@@ -230,10 +229,9 @@ public class OnapCommandResultTest {
res.setRecords(list);
res.setScope(OnapCommandResultAttributeScope.LONG);
res.setType(OnapCommandResultType.JSON);
-
String result = res.print();
String expRes="[{\"param\":{\"id\":\"0001\",\"value\":\"result\"}}]";
- assertEquals(gson.toJson(expRes),result);
+ assertEquals(expRes,result);
}
}