net.sf.jbenchmark
Class TestLoop

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

public class TestLoop
extends TestGroup

A test that runs another test multiple times.

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

Constructor Summary
TestLoop()
           
 
Method Summary
protected  TestResult doRun()
          Executes the test.
 void setCount(int count)
          Sets the count.
 
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

TestLoop

public TestLoop()
Method Detail

setCount

public void setCount(int count)
Sets the count.


doRun

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

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