|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.core.collection.LocalParameterMap org.springframework.webflow.test.MockParameterMap
public class MockParameterMap
A extension of parameter map that allows for mutation of parameters. Useful as a stub for testing.
ParameterMap
,
Serialized FormConstructor Summary | |
---|---|
MockParameterMap()
Creates a new parameter map, initially empty. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.springframework.webflow.core.collection.LocalParameterMap |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MockParameterMap()
Method Detail |
---|
public MockParameterMap put(java.lang.String parameterName, java.lang.String parameterValue)
parameterName
- the parameter nameparameterValue
- the parameter value
public MockParameterMap put(java.lang.String parameterName, java.lang.String[] parameterValues)
parameterName
- the parameter nameparameterValues
- the parameter values
public MockParameterMap put(java.lang.String parameterName, org.springframework.web.multipart.MultipartFile parameterValues)
parameterName
- the parameter nameparameterValues
- the parameter values
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |