net.sf.jbenchmark
Class AssertStatusCode

java.lang.Object
  extended bynet.sf.jbenchmark.AssertStatusCode
All Implemented Interfaces:
Assertion

public class AssertStatusCode
extends java.lang.Object
implements Assertion

Asserts that an HTTP request returns an expected status code.

Version:
$Id: AssertStatusCode.java,v 1.2 2004/02/05 09:25:23 dcotterill Exp $
Author:
Adam Murdoch

Constructor Summary
AssertStatusCode()
           
 
Method Summary
 void checkResult(TestResult result)
          Check the results of a test.
 void setStatus(int statusCode)
          Sets the status code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertStatusCode

public AssertStatusCode()
Method Detail

setStatus

public void setStatus(int statusCode)
Sets the status code.


checkResult

public void checkResult(TestResult result)
                 throws java.lang.Exception
Check the results of a test.

Specified by:
checkResult in interface Assertion
Throws:
java.lang.Exception