mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
addtest
This commit is contained in:
13
hutool-json/src/test/java/cn/hutool/json/Issue2801Test.java
Executable file
13
hutool-json/src/test/java/cn/hutool/json/Issue2801Test.java
Executable file
@@ -0,0 +1,13 @@
|
||||
package cn.hutool.json;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class Issue2801Test {
|
||||
@Test
|
||||
public void toStringTest() {
|
||||
final JSONObject recordObj = new JSONObject(JSONConfig.of().setIgnoreNullValue(false));
|
||||
recordObj.put("m_reportId", null);
|
||||
Assert.assertEquals("{\"m_reportId\":null}", recordObj.toString());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user