mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
d8a7b9b440
commit
702253aaf6
@ -197,14 +197,12 @@ public class JSONArrayTest {
|
||||
|
||||
@Test
|
||||
public void toListWithErrorTest() {
|
||||
// Assertions.assertThrows(JSONException.class, ()->{
|
||||
// });
|
||||
final String json = "[['aaa',{'akey':'avalue','bkey':'bvalue'}]]";
|
||||
final JSONArray ja = JSONUtil.parseArray(json);
|
||||
|
||||
final Object bean = ja.toBean(new TypeReference<List<List<KeyBean>>>() {});
|
||||
|
||||
Console.log(bean);
|
||||
Assertions.assertThrows(JSONException.class, ()->{
|
||||
final String json = "[['aaa',{'akey':'avalue','bkey':'bvalue'}]]";
|
||||
final JSONArray ja = JSONUtil.parseArray(json);
|
||||
final Object bean = ja.toBean(new TypeReference<List<List<KeyBean>>>() {});
|
||||
Console.log(bean);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
x
Reference in New Issue
Block a user