Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.3.24
-
None
Description
All of the tests which use StrutsMockHttpServletRequest are setting up incorrectly typed parameterMaps in the mock.
A parameterMap should be typed java.util.Map<java.lang.String,java.lang.String[]> and not Map<String,String> as the tests are doing i.e the value parameter should be String[] and not String. This caused us to see test failures when treating those values as String[] when they weren't.
See:
http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html
http://docs.oracle.com/javaee/7/api/javax/servlet/ServletRequest.html#getParameterMap%28%29