mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
13
hutool-json/src/test/java/cn/hutool/json/Issue2997Test.java
Normal file
13
hutool-json/src/test/java/cn/hutool/json/Issue2997Test.java
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package cn.hutool.json;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class Issue2997Test {
|
||||||
|
@Test
|
||||||
|
public void toBeanTest() {
|
||||||
|
// https://github.com/dromara/hutool/issues/2997
|
||||||
|
final Object o = JSONUtil.toBean("{}", Object.class);
|
||||||
|
Assert.assertEquals(JSONObject.class, o.getClass());
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user