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