Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
jdk1.6
Description
i have test case like as follow,but was fail!any problem?
public static void testGetMappedArray() throws Exception {
String[] array = new String[]
;
Map s1=new HashMap();
Map s2=new HashMap();
s1.put("mapProperty", s2);
s2.put("mappedArray", array);
assertEquals("abc", PropertyUtil.getProperty(s1, "mapProperty(mappedArray)[0]"));
assertEquals("def", PropertyUtil.getProperty(s1, "mapProperty(mappedArray)[1]"));
assertEquals("ghi", PropertyUtil.getProperty(s1, "mapProperty(mappedArray)[2]"));
}
Attachments
Issue Links
- requires
-
BEANUTILS-376 Supporting indexed (mapped) properties of Map objects
- Reopened