net.sf.jbenchmark
Class ForEachTest

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

public class ForEachTest
extends TestGroup

A test group that executes once for each item in a list.

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

Constructor Summary
ForEachTest()
           
 
Method Summary
protected  TestResult doRun()
          Executes the test.
 void setVar(java.lang.String var)
          Sets the name of the variable to be set on the attributes
 
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

ForEachTest

public ForEachTest()
Method Detail

setVar

public void setVar(java.lang.String var)
Sets the name of the variable to be set on the attributes


doRun

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

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