diff --git a/test/com/platform/test/MapTest.java b/test/com/platform/test/MapTest.java index fd8cd4f9..97d929ff 100644 --- a/test/com/platform/test/MapTest.java +++ b/test/com/platform/test/MapTest.java @@ -53,12 +53,22 @@ public class MapTest { @Test public void testMapPut() { Map errmap = new HashMap(); - List errArea = new ArrayList(); - errArea.add("aaa"); - if (errArea.size() > 0) { - errmap.put("err", errArea); + List> errFile = new ArrayList>(); + List> rowErr = new ArrayList>(); + + Map map = new HashMap(); + map.put("name", "test"); + map.put("value", "te"); + errFile.add((HashMap) map); + + Map map2 = new HashMap(); + map2.put("name", "test2"); + map2.put("value", "te2"); + rowErr.add((HashMap) map2); + + if (rowErr.size() > 0) { + errmap.put("err", rowErr); } - List errFile = new ArrayList(); // errFile.add("file"); if (errFile.size() > 0) { if (errmap.containsKey("err")) {