mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
16
hutool-json/src/test/java/cn/hutool/json/Issue2924Test.java
Normal file
16
hutool-json/src/test/java/cn/hutool/json/Issue2924Test.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package cn.hutool.json;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Issue2924Test {
|
||||
|
||||
@Test
|
||||
public void toListTest(){
|
||||
final String idsJsonString = "[1174,137,1172,210,1173,627,628]";
|
||||
final List<Integer> idList = JSONUtil.toList(idsJsonString,Integer.class);
|
||||
Assert.assertEquals("[1174, 137, 1172, 210, 1173, 627, 628]", idList.toString());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user