net.sf.jbenchmark
Class AssertDuration

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

public class AssertDuration
extends java.lang.Object
implements Assertion

A test group that asserts that it completes in a certain duration.

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

Constructor Summary
AssertDuration()
           
 
Method Summary
 void checkResult(TestResult result)
          Check the results of a test.
 void setMax(int maxDuration)
          Sets the maximum duration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertDuration

public AssertDuration()
Method Detail

setMax

public void setMax(int maxDuration)
Sets the maximum duration.


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