This commit is contained in:
Looly
2023-06-29 10:26:36 +08:00
parent 824bf11d05
commit 05617ff356
3 changed files with 54 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package org.dromara.hutool.json;
import org.dromara.hutool.core.collection.ListUtil;
import org.dromara.hutool.core.date.DateUtil;
import org.dromara.hutool.core.lang.Console;
import org.dromara.hutool.core.map.MapUtil;
import org.dromara.hutool.core.math.NumberUtil;
import org.dromara.hutool.json.serialize.JSONStringer;
@@ -334,4 +335,10 @@ public class JSONUtilTest {
private Byte[] d = new Byte[0];
private Byte[] e = new Byte[1];
}
@Test
void toJsonStrOfBooleanTest() {
final String jsonStr = JSONUtil.toJsonStr(true);
Assertions.assertEquals("true", jsonStr);
}
}