You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "smildlzj (Created) (JIRA)" <ji...@apache.org> on 2011/10/17 12:00:11 UTC
[jira] [Created] (BEANUTILS-400) set get Array in map fail?
set get Array in map fail?
--------------------------
Key: BEANUTILS-400
URL: https://issues.apache.org/jira/browse/BEANUTILS-400
Project: Commons BeanUtils
Issue Type: Bug
Components: Bean / Property Utils
Environment: jdk1.6
Reporter: smildlzj
i have test case like as follow,but was fail!any problem?
public static void testGetMappedArray() throws Exception {
String[] array = new String[] {"abc", "def", "ghi"};
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]"));
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira