sp7839 - map autogrow, including auto-grow support for map values

This commit is contained in:
Keith Donald
2011-01-07 19:22:45 +00:00
parent ac9fd008de
commit 414fcab899
2 changed files with 18 additions and 11 deletions

View File

@@ -2,8 +2,6 @@ package org.springframework.web.servlet.mvc.annotation;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -101,7 +99,6 @@ public class Spr7839Tests {
}
@Test
@Ignore
public void map() throws Exception {
request.setRequestURI("/nested/map");
request.addParameter("nested.map['apple'].foo", "bar");
@@ -185,12 +182,12 @@ public class Spr7839Tests {
private List<NestedBean>[] arrayOfLists;
private Map<String, NestedBean> map = new HashMap<String, NestedBean>();
private Map<String, NestedBean> map;
private Map<String, List<Integer>> mapOfLists = new HashMap<String, List<Integer>>();
private Map<String, List<Integer>> mapOfLists;
public NestedBean() {
mapOfLists.put("apples", new ArrayList<Integer>());
}
public NestedBean(String foo) {