org.apache.tomcat.util.test.matchers
Class ResponseMatch

java.lang.Object
  extended byorg.apache.tomcat.util.test.Matcher
      extended byorg.apache.tomcat.util.test.matchers.ResponseMatch

public class ResponseMatch
extends Matcher

Check if the response contains a substring


Field Summary
 
Fields inherited from class org.apache.tomcat.util.test.Matcher
client, debug, magnitude, request, response, result
 
Constructor Summary
ResponseMatch()
           
 
Method Summary
 void execute()
          Execute the test
 java.lang.String getTestDescription()
          A test description of the test beeing made
 void setMatch(java.lang.String s)
          Verify that response match the string
 void setResponseMatch(java.lang.String s)
          Verify that response match the string
 
Methods inherited from class org.apache.tomcat.util.test.Matcher
getHttpClient, getHttpRequest, getHttpResponse, getMessage, getResult, log, setDebug, setExpectedResult, setHttpClient, setHttpRequest, setHttpResponse, setIf, setMagnitude, setUnless, skipTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseMatch

public ResponseMatch()
Method Detail

setMatch

public void setMatch(java.lang.String s)
Verify that response match the string


setResponseMatch

public void setResponseMatch(java.lang.String s)
Verify that response match the string


getTestDescription

public java.lang.String getTestDescription()
A test description of the test beeing made

Overrides:
getTestDescription in class Matcher

execute

public void execute()
Description copied from class: Matcher
Execute the test

Overrides:
execute in class Matcher


Copyright ? 2001 Apache Software Foundation. All Rights Reserved.