|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tomcat.util.test.Matcher
Part of the GTest application
Field Summary | |
---|---|
protected HttpClient |
client
|
protected int |
debug
|
protected boolean |
magnitude
|
protected HttpRequest |
request
|
protected HttpResponse |
response
|
protected boolean |
result
|
Constructor Summary | |
---|---|
Matcher()
|
Method Summary | |
---|---|
void |
execute()
Execute the test |
HttpClient |
getHttpClient()
|
HttpRequest |
getHttpRequest()
|
HttpResponse |
getHttpResponse()
|
java.lang.String |
getMessage()
Return a message describing the reason of the failure or the test log |
boolean |
getResult()
Result of the test |
java.lang.String |
getTestDescription()
Test description ( text representation of the test ) |
protected void |
log(java.lang.String s)
Add a message to the test log |
void |
setDebug(int d)
Display debug info |
void |
setExpectedResult(boolean b)
|
void |
setHttpClient(HttpClient req)
The test case |
void |
setHttpRequest(HttpRequest req)
The request that generated the response |
void |
setHttpResponse(HttpResponse resp)
The response we'll match against |
void |
setIf(java.lang.String prop)
|
void |
setMagnitude(boolean b)
|
void |
setUnless(java.lang.String prop)
|
boolean |
skipTest()
Check if test should be skipped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected HttpResponse response
protected HttpRequest request
protected HttpClient client
protected boolean result
protected boolean magnitude
protected int debug
Constructor Detail |
public Matcher()
Method Detail |
public void setIf(java.lang.String prop)
public void setUnless(java.lang.String prop)
public java.lang.String getTestDescription()
public void setExpectedResult(boolean b)
public void setMagnitude(boolean b)
public void setDebug(int d)
public java.lang.String getMessage()
protected void log(java.lang.String s)
public boolean getResult()
public void setHttpClient(HttpClient req)
public HttpClient getHttpClient()
public void setHttpRequest(HttpRequest req)
public HttpRequest getHttpRequest()
public void setHttpResponse(HttpResponse resp)
public HttpResponse getHttpResponse()
public void execute()
public boolean skipTest()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |