This commit is contained in:
Looly 2023-03-20 23:32:19 +08:00
parent 19eadb0f78
commit bd799be30c

View 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());
}
}