org.apache.tapestry.test.assertions
Class AssertRegexp
java.lang.Object
org.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.test.assertions.AssertRegexp
- All Implemented Interfaces:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, ResponseAssertion
- public class AssertRegexp
- extends org.apache.hivemind.impl.BaseLocatable
- implements ResponseAssertion
Assertion used to check for the presence of a regular expression
within the response output. Alternately, it can check for a specific
list of matches of a regular expression within the response.
- 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 |
AssertRegexp
public AssertRegexp()
addMatch
public void addMatch(RegexpMatch m)
execute
public void execute(ScriptedTestSession session)
- Description copied from interface:
ResponseAssertion
- Invoked after a response has been recieved from the simulated servlet container;
assertions run to check that the response is as expected.
- Specified by:
execute
in interface ResponseAssertion
setRegexp
public void setRegexp(java.lang.String string)
setSubgroup
public void setSubgroup(int subgroup)