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

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

public class HttpStatusMatch
extends Matcher

Test if the HTTP response has a certain status code


Field Summary
 
Fields inherited from class org.apache.tomcat.util.test.Matcher
client, debug, magnitude, request, response, result
 
Constructor Summary
HttpStatusMatch()
           
 
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 the response code
 void setReturnCode(java.lang.String s)
           
 
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

HttpStatusMatch

public HttpStatusMatch()
Method Detail

setMatch

public void setMatch(java.lang.String s)
Verify the response code


setReturnCode

public void setReturnCode(java.lang.String s)

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.