Skip to content

Commit 42aaf6d

Browse files
committed
add testcase for issue #1613
1 parent 3b17f01 commit 42aaf6d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.alibaba.fastjson2.issues_1600;
2+
3+
import com.alibaba.fastjson2.JSON;
4+
import org.junit.jupiter.api.Test;
5+
6+
import static org.junit.jupiter.api.Assertions.assertEquals;
7+
8+
public class Issue1613 {
9+
@Test
10+
public void test() {
11+
Bean bean = new Bean();
12+
assertEquals("{}", JSON.toJSONString(bean));
13+
}
14+
15+
public static class Bean {
16+
public void getId() {
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)