Skip to content

Commit

Permalink
fix testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Oct 22, 2022
1 parent b72f142 commit ba7419b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/test/java/com/alibaba/fastjson2/issues/Issue698.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONB;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.TestUtils;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

public class Issue698 {
@Test
public void testDeserialize() {
if (TestUtils.GRAALVM) {
return;
}

String jsonString = "{\"middleEntity\":{\"entity\":{\"name\":\"jhahah\"}}}";
BigEntity result = JSON.parseObject(jsonString, BigEntity.class);
assertEquals(
Expand All @@ -23,6 +28,10 @@ public void testDeserialize() {

@Test
public void testDeserialize1() {
if (TestUtils.GRAALVM) {
return;
}

String jsonString = "{\"middleEntity\":{\"entity\":{\"name\":\"jhahah\"}}}";
JSONObject jsonObject = JSON.parseObject(jsonString);
byte[] jsonbBytes = jsonObject.toJSONBBytes();
Expand Down

0 comments on commit ba7419b

Please # to comment.