net.sf.jbenchmark
Class TestLoopDuration

java.lang.Object
  extended bynet.sf.jbenchmark.TestFeature
      extended bynet.sf.jbenchmark.Test
          extended bynet.sf.jbenchmark.TestGroup
              extended bynet.sf.jbenchmark.TestLoopDuration
All Implemented Interfaces:
java.lang.Runnable, TestContext, TestListener

public class TestLoopDuration
extends TestGroup

Loops for a constant amount of time.

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

Constructor Summary
TestLoopDuration()
           
 
Method Summary
protected  TestResult doRun()
          Executes the test.
 void setDuration(long duration)
          Sets the duration for the test (in seconds).
 
Methods inherited from class net.sf.jbenchmark.TestGroup
addListener, addTest, getAttribute, getExternalResource, getFeatureContext, getListener, getTests, getThreadCount, setAttribute, setContext, testFailed, testFinished, testStart
 
Methods inherited from class net.sf.jbenchmark.Test
addAssertion, addFeature, addResource, doCleanup, doInitialise, finish, getResource, run
 
Methods inherited from class net.sf.jbenchmark.TestFeature
getContext, getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.jbenchmark.TestContext
getResource
 

Constructor Detail

TestLoopDuration

public TestLoopDuration()
Method Detail

setDuration

public void setDuration(long duration)
Sets the duration for the test (in seconds).


doRun

protected TestResult doRun()
                    throws java.lang.Exception
Executes the test.

Overrides:
doRun in class TestGroup
Throws:
java.lang.Exception