org.apache.tapestry.test.assertions
Class AssertRegexp

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.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

Constructor Summary
AssertRegexp()
           
 
Method Summary
 void addMatch(RegexpMatch m)
           
 void execute(ScriptedTestSession session)
          Invoked after a response has been recieved from the simulated servlet container; assertions run to check that the response is as expected.
 void setRegexp(java.lang.String string)
           
 void setSubgroup(int subgroup)
           
 
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
 

Constructor Detail

AssertRegexp

public AssertRegexp()
Method Detail

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)