org.apache.tapestry.test
Class RequestDescriptor
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.test.RequestDescriptor
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
public class RequestDescriptor
- extends org.apache.hivemind.impl.BaseLocatable
- Since:
- 4.0
- Author:
- Howard Lewis Ship
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestDescriptor
public RequestDescriptor()
addAssertion
public void addAssertion(ResponseAssertion assertion)
executeAssertions
public void executeAssertions(ScriptedTestSession session)
- Invokes all assertions for the request.
addParameter
public void addParameter(java.lang.String name,
java.lang.String value)
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String name)
- Returns the values for the given parameter name.
- Returns:
- array of strings, or null if no values have been recorded for
the given name
getServletName
public java.lang.String getServletName()
setServletName
public void setServletName(java.lang.String string)
getServletPath
public java.lang.String getServletPath()
setServletPath
public void setServletPath(java.lang.String string)
getParameterNames
public java.lang.String[] getParameterNames()
- Returns names of all parameters. Order is not determinate. May return empty (but not null).