net.sf.jbenchmark
Class ChooseRandom

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

public class ChooseRandom
extends Test

A test that selects a random test to execute from its children.

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

Constructor Summary
ChooseRandom()
           
 
Method Summary
 void addChoice(ChoiceTest test)
          Adds a choice to this test.
protected  TestResult doRun()
          Executes the test.
 
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

ChooseRandom

public ChooseRandom()
Method Detail

addChoice

public void addChoice(ChoiceTest test)
Adds a choice to this test.


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