AlbumenJ commented on code in PR #10311:
URL: https://github.com/apache/dubbo/pull/10311#discussion_r919872839


##########
dubbo-metadata/dubbo-metadata-api/src/test/java/org/apache/dubbo/metadata/MetadataInfoTest.java:
##########
@@ -161,4 +163,26 @@ public void testJsonFormat() {
         System.out.println(JsonUtils.getJson().toJson(metadataInfo2));
 
     }
+
+    @Test
+    public void testCal() {
+        MetadataInfo metadataInfo = new MetadataInfo("demo");
+
+        // export normal url again
+        metadataInfo.addService(url);
+
+        metadataInfo.calAndGetRevision();
+
+        metadataInfo.addService(url2);
+
+        metadataInfo.calAndGetRevision();
+
+        metadataInfo.addService(url3);
+
+        metadataInfo.calAndGetRevision();
+
+        JSONObject object = JSON.parseObject(metadataInfo.getContent());

Review Comment:
   Use JsonUtil, prevent directly use fastjson



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to