|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.skeet.jbench.BenchSuite
Class encapsulating a set of tasks and a general configuration. A BenchSuite may in turn contain further BenchSuites. In that case, tasks from the subsidiary BenchSuites are used, but the configuration isn't.
Constructor Summary | |
BenchSuite()
|
Method Summary | |
void |
addSuite(BenchSuite suite)
Adds a suite to this one, as a subsidiary. |
void |
addSystemInformation(java.lang.String info)
Adds an item of system information to the list |
void |
addTask(BenchTask task)
|
java.util.List |
getAllTasks()
Returns a list of all the tasks contained in this suite and all subsidiary suites. |
JBenchEventListener |
getEventListener()
Returns the event listener for this suite. |
int |
getExcludeBest()
Returns how many of the best results will be excluded |
int |
getExcludeWorst()
Returns how many of the worst results will be excluded |
int |
getRunsPerTask()
Returns the number of tests to run on each task |
java.util.List |
getSuiteList()
Returns a list of the subsidiary suites. |
java.util.List |
getSystemInformation()
Returns the list of system information items |
java.util.List |
getTaskList()
Returns a list of just the tasks contained in this suite, not including subsidiary suites. |
BenchTimer |
getTimer()
Returns the timer to use in performance measurements |
boolean |
isFailFast()
Returns whether or not this suite fails on error |
void |
resetSuiteList()
Resets the list of subsidiary suites. |
void |
resetSystemInformation()
Resets the list of system information items |
void |
resetTaskList()
Resets the list of tasks for this suite (not subsidiary suites). |
void |
runTests()
Runs the tests themselves, including those defined in subsidiary suites. |
void |
setEventListener(JBenchEventListener eventListener)
Sets the event listener for this suite. |
void |
setExcludeBest(int excludeBest)
Sets how many of the best results should be excluded |
void |
setExcludeWorst(int excludeWorst)
Sets how many of the worst results should be excluded |
void |
setFailFast(boolean failFast)
Specifies whether or not this suite should fail on error |
void |
setRunsPerTask(int runsPerTask)
Sets the number of tests to run on each task |
void |
setTimer(BenchTimer timer)
Sets the timer to use in performance measurements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BenchSuite()
Method Detail |
public void runTests()
public boolean isFailFast()
public void setFailFast(boolean failFast)
public java.util.List getTaskList()
public java.util.List getAllTasks()
public void addTask(BenchTask task)
public void resetTaskList()
public java.util.List getSuiteList()
public void addSuite(BenchSuite suite)
public void resetSuiteList()
public JBenchEventListener getEventListener()
public void setEventListener(JBenchEventListener eventListener)
public int getRunsPerTask()
public void setRunsPerTask(int runsPerTask)
public int getExcludeBest()
public void setExcludeBest(int excludeBest)
public int getExcludeWorst()
public void setExcludeWorst(int excludeWorst)
public java.util.List getSystemInformation()
public void addSystemInformation(java.lang.String info)
public void resetSystemInformation()
public BenchTimer getTimer()
public void setTimer(BenchTimer timer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |