mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
15
hutool-json/src/test/java/cn/hutool/json/Issue2380Test.java
Normal file
15
hutool-json/src/test/java/cn/hutool/json/Issue2380Test.java
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
package cn.hutool.json;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class Issue2380Test {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void parseObjTest(){
|
||||||
|
// 多个都好,做容错处理
|
||||||
|
final String s = "{\"k\":\"v\",}";
|
||||||
|
final JSONObject jsonObject = JSONUtil.parseObj(s);
|
||||||
|
Assert.assertEquals("{\"k\":\"v\"}", jsonObject.toString());
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user