From 42fdc2fb15c52613f575406c588b6009a23912f4 Mon Sep 17 00:00:00 2001 From: wenshao Date: Sat, 2 Nov 2024 14:16:21 +0800 Subject: [PATCH] add testcase for issue #3104 --- .../src/test/java/com/alibaba/fastjson2/issues/Issue3104.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-jdk17/src/test/java/com/alibaba/fastjson2/issues/Issue3104.java b/test-jdk17/src/test/java/com/alibaba/fastjson2/issues/Issue3104.java index 9470e9249..001b31b1d 100644 --- a/test-jdk17/src/test/java/com/alibaba/fastjson2/issues/Issue3104.java +++ b/test-jdk17/src/test/java/com/alibaba/fastjson2/issues/Issue3104.java @@ -26,6 +26,6 @@ public void test() { String json = JSON.toJSONString(new Transform("zhangsan", "lisi")); assertEquals("{\"bridge\":{\"from\":\"zhangsan\",\"to\":\"lisi\"}}", json); Transform transform = JSON.parseObject(json, Transform.class); - System.out.println(transform); + assertEquals(json, JSON.toJSONString(transform)); } }