public class MockParameterMap extends LocalParameterMap
ParameterMap
,
Serialized FormConstructor and Description |
---|
MockParameterMap()
Creates a new parameter map, initially empty.
|
Modifier and Type | Method and Description |
---|---|
MockParameterMap |
put(java.lang.String parameterName,
org.springframework.web.multipart.MultipartFile parameterValues)
Add a new multi-part file parameter to this map.
|
MockParameterMap |
put(java.lang.String parameterName,
java.lang.String parameterValue)
Add a new parameter to this map.
|
MockParameterMap |
put(java.lang.String parameterName,
java.lang.String[] parameterValues)
Add a new multi-valued parameter to this map.
|
asAttributeMap, asMap, contains, equals, get, get, get, get, getArray, getArray, getBoolean, getBoolean, getInteger, getInteger, getLong, getLong, getMapInternal, getMultipartFile, getNumber, getNumber, getRequired, getRequired, getRequiredArray, getRequiredArray, getRequiredBoolean, getRequiredInteger, getRequiredLong, getRequiredMultipartFile, getRequiredNumber, hashCode, initParameters, isEmpty, size, toString
public MockParameterMap()
public MockParameterMap put(java.lang.String parameterName, java.lang.String parameterValue)
parameterName
- the parameter nameparameterValue
- the parameter valuepublic MockParameterMap put(java.lang.String parameterName, java.lang.String[] parameterValues)
parameterName
- the parameter nameparameterValues
- the parameter valuespublic MockParameterMap put(java.lang.String parameterName, org.springframework.web.multipart.MultipartFile parameterValues)
parameterName
- the parameter nameparameterValues
- the parameter values