Skip to content

Commit

Permalink
add testcase for issue #1613
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Jul 5, 2023
1 parent 3b17f01 commit 42aaf6d
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.alibaba.fastjson2.issues_1600;

import com.alibaba.fastjson2.JSON;
import org.junit.jupiter.api.Test;

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

public class Issue1613 {
@Test
public void test() {
Bean bean = new Bean();
assertEquals("{}", JSON.toJSONString(bean));
}

public static class Bean {
public void getId() {
}
}
}

0 comments on commit 42aaf6d

Please sign in to comment.