| java.lang.Object ro.schlund.test.pustefix.mock.MockRequestDataImpl
MockRequestDataImpl | public class MockRequestDataImpl implements RequestData(Code) | | author: Dan Dumitrescu author: Class usage: RequestData interface implemetation for test cases. Helps register IWrapper parameters |
MockRequestDataImpl | public MockRequestDataImpl(Context context)(Code) | | Class constructor.
Parameters: context - |
getCommandNames | public Iterator getCommandNames()(Code) | | Get all the registered commands names
java.util.Iterator |
getCommands | public String[] getCommands(String cmd)(Code) | | Get the values of a command that matches cmd
String[] - array |
getParameterNames | public Iterator getParameterNames()(Code) | | Get all the registered parameteres names
java.util.Iterator |
getParameters | public RequestParam[] getParameters(String name)(Code) | | Get the values of the paramenter that matches name
RequestParam[] array |
registerCommand | public void registerCommand(String name, String cmd) throws IllegalArgumentException(Code) | | Register a command
Parameters: name - - command name Parameters: cmd - - command itself IllegalArgumentException if name is null or an empty string |
registerParam | public void registerParam(String name, String value) throws IllegalArgumentException(Code) | | Register a parameter with a string value. Also the indexed parameters can be registered with this function
Parameters: name - - the parameter's name Parameters: value - - the parameter's string value IllegalArgumentException if the name is null or emtpy string |
registerParam | public void registerParam(String name, Object[] values) throws IllegalArgumentException(Code) | | Register a parameter with an array of values. If the parameter's value is not a string
then this is the proper function for the parameter registration.
Also the indexed parameters can be registered with this function.
Parameters: name - - the parameter's name Parameters: values - - parameter's value - Object[] IllegalArgumentException if the parameter name is null or empty string |
|
|