mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
addtest
This commit is contained in:
parent
e89de5c18f
commit
ec4467cb43
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());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user