This commit is contained in:
Looly
2021-06-16 02:01:56 +08:00
parent 373c30b9f0
commit 8c3298fed4
25 changed files with 246 additions and 395 deletions

View File

@@ -59,7 +59,7 @@ public class JSONUtilTest {
a2.setName("AAAA222Name");
ArrayList<UserA> list = CollectionUtil.newArrayList(a1, a2);
HashMap<String, Object> map = CollectionUtil.newHashMap();
HashMap<String, Object> map = MapUtil.newHashMap();
map.put("total", 13);
map.put("rows", list);

View File

@@ -19,7 +19,7 @@ public class TransientTest {
detailBill.setBizNo("bizNo");
final JSONObject jsonObject = new JSONObject(detailBill,
JSONConfig.create().setIgnoreTransient(true));
JSONConfig.create().setTransientSupport(false));
Assert.assertEquals("{\"bizNo\":\"bizNo\"}", jsonObject.toString());
}
}