|
|
|
@ -53,12 +53,22 @@ public class MapTest {
|
|
|
|
|
@Test
|
|
|
|
|
public void testMapPut() {
|
|
|
|
|
Map<String, List> errmap = new HashMap<String, List>();
|
|
|
|
|
List<String> errArea = new ArrayList<String>();
|
|
|
|
|
errArea.add("aaa");
|
|
|
|
|
if (errArea.size() > 0) {
|
|
|
|
|
errmap.put("err", errArea);
|
|
|
|
|
List<HashMap<String, Object>> errFile = new ArrayList<HashMap<String, Object>>();
|
|
|
|
|
List<HashMap<String, Object>> rowErr = new ArrayList<HashMap<String, Object>>();
|
|
|
|
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
map.put("name", "test");
|
|
|
|
|
map.put("value", "te");
|
|
|
|
|
errFile.add((HashMap<String, Object>) map);
|
|
|
|
|
|
|
|
|
|
Map<String, Object> map2 = new HashMap<String, Object>();
|
|
|
|
|
map2.put("name", "test2");
|
|
|
|
|
map2.put("value", "te2");
|
|
|
|
|
rowErr.add((HashMap<String, Object>) map2);
|
|
|
|
|
|
|
|
|
|
if (rowErr.size() > 0) {
|
|
|
|
|
errmap.put("err", rowErr);
|
|
|
|
|
}
|
|
|
|
|
List<String> errFile = new ArrayList<String>();
|
|
|
|
|
// errFile.add("file");
|
|
|
|
|
if (errFile.size() > 0) {
|
|
|
|
|
if (errmap.containsKey("err")) {
|
|
|
|
|