org.apache.tapestry.test.assertions
Class AssertOutput

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.test.assertions.AssertOutput
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, ResponseAssertion

public class AssertOutput
extends org.apache.hivemind.impl.BaseLocatable
implements ResponseAssertion

Assertion that checks for the presence of a particular substring within the response text.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
AssertOutput()
           
 
Method Summary
 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 setExpectedSubstring(java.lang.String expectedSubstring)
           
 
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

AssertOutput

public AssertOutput()
Method Detail

setExpectedSubstring

public void setExpectedSubstring(java.lang.String expectedSubstring)

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