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

java.lang.Object
  |
  +--org.apache.tomcat.util.test.Matcher
        |
        +--org.apache.tomcat.util.test.matchers.GoldenMatch

public class GoldenMatch
extends Matcher

Check if the Resposne body matches a golden file.


Fields inherited from class org.apache.tomcat.util.test.Matcher
client, debug, magnitude, request, response, result
 
Constructor Summary
GoldenMatch()
           
 
Method Summary
 void execute()
          Execute the test
 java.lang.String getTestDescription()
          Test description ( text representation of the test )
 void setExactMatch(boolean ex)
           
 void setFile(java.lang.String s)
          Compare with the golden file
 void setGoldenFile(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

GoldenMatch

public GoldenMatch()
Method Detail

setExactMatch

public void setExactMatch(boolean ex)

setFile

public void setFile(java.lang.String s)
Compare with the golden file

setGoldenFile

public void setGoldenFile(java.lang.String s)

getTestDescription

public java.lang.String getTestDescription()
Description copied from class: Matcher
Test description ( text representation of the test )
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.