net.sf.jbenchmark
Class ChooseRandomItemTest

java.lang.Object
  extended bynet.sf.jbenchmark.TestFeature
      extended bynet.sf.jbenchmark.Test
          extended bynet.sf.jbenchmark.ChooseRandomItemTest
All Implemented Interfaces:
java.lang.Runnable

public class ChooseRandomItemTest
extends Test

A test group that chooses a random item from a list.

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

Constructor Summary
ChooseRandomItemTest()
           
 
Method Summary
protected  TestResult doRun()
          Executes the test.
 void setVar(java.lang.String var)
          Sets the name of the item, as it is added to the "items" map.
 
Methods inherited from class net.sf.jbenchmark.Test
addAssertion, addFeature, addResource, doCleanup, doInitialise, finish, getFeatureContext, getResource, run, setContext
 
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
 

Constructor Detail

ChooseRandomItemTest

public ChooseRandomItemTest()
Method Detail

setVar

public void setVar(java.lang.String var)
Sets the name of the item, as it is added to the "items" map.


doRun

protected TestResult doRun()
                    throws java.lang.Exception
Executes the test. This method may be called more than once, and from more than one thread.

Specified by:
doRun in class Test
Throws:
java.lang.Exception