We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b101769 commit 210a108Copy full SHA for 210a108
core/src/test/java/com/alibaba/fastjson2/issues_2200/Issue2227.kt
@@ -9,14 +9,12 @@ class Issue2227 {
9
@Test
10
fun testAssertJSONObjectWithVersion2() {
11
val jsonObject = JSON.toJSON(OuterClass()) as JSONObject
12
- // 以下断言失败
13
Assertions.assertTrue(jsonObject["nestedClass"] is JSONObject)
14
}
15
16
17
fun testAssertJSONObjectWithVersion1() {
18
val jsonObject = com.alibaba.fastjson.JSON.toJSON(OuterClass()) as com.alibaba.fastjson.JSONObject
19
- // 以下断言成功
20
Assertions.assertTrue(jsonObject["nestedClass"] is com.alibaba.fastjson.JSONObject)
21
22
0 commit comments