net.sf.jbenchmark
Class ChoiceTest

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

public class ChoiceTest
extends TestGroup

A weighted test group.

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

Constructor Summary
ChoiceTest()
           
 
Method Summary
 int getMinWeight()
          Returns the min weight of this choice.
 int getWeight()
          Returns the weight of this choice.
 void setMinWeight(int minWeight)
          Sets the min weight of this choice.
 void setWeight(int weight)
          Set the weight of this choice.
 
Methods inherited from class net.sf.jbenchmark.TestGroup
addListener, addTest, doRun, 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

ChoiceTest

public ChoiceTest()
Method Detail

getWeight

public int getWeight()
Returns the weight of this choice.


setWeight

public void setWeight(int weight)
Set the weight of this choice.


getMinWeight

public int getMinWeight()
Returns the min weight of this choice.


setMinWeight

public void setMinWeight(int minWeight)
Sets the min weight of this choice.