net.sf.randomjunit
Class RandomSuite
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runner.Runner>
org.junit.runners.Suite
net.sf.randomjunit.RandomSuite
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class RandomSuite
- extends org.junit.runners.Suite
This class randomize the execution of test suites.
Based on http://stackoverflow.com/questions/1444314/how-can-i-make-my-junit
-tests-run-in-random-order
Control Version
- Version:
- 1.0.0 2011-06-13
- Author:
- Andres Gomez Casanova (AngocA)
Nested classes/interfaces inherited from class org.junit.runners.Suite |
org.junit.runners.Suite.SuiteClasses |
Constructor Summary |
protected |
RandomSuite(Class<?> klass,
List<org.junit.runner.Runner> runners)
|
|
RandomSuite(Class<?> klass,
org.junit.runners.model.RunnerBuilder builder)
Please see: Suite.Suite(Class, RunnerBuilder) . |
|
RandomSuite(org.junit.runners.model.RunnerBuilder builder,
Class<?>[] classes)
Please see: Suite.Suite(RunnerBuilder, Class[])
. |
Methods inherited from class org.junit.runners.Suite |
describeChild, emptySuite, runChild |
Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, classBlock, collectInitializationErrors, filter, getDescription, getName, getTestClass, run, setScheduler, sort, validatePublicVoidNoArgMethods, withAfterClasses, withBeforeClasses |
Methods inherited from class org.junit.runner.Runner |
testCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomSuite
public RandomSuite(Class<?> klass,
org.junit.runners.model.RunnerBuilder builder)
throws org.junit.runners.model.InitializationError
- Please see:
Suite.Suite(Class, RunnerBuilder)
.
- Parameters:
klass
- the root class.builder
- builds runners for classes in the suite
- Throws:
org.junit.runners.model.InitializationError
- If any error.
RandomSuite
public RandomSuite(org.junit.runners.model.RunnerBuilder builder,
Class<?>[] classes)
throws org.junit.runners.model.InitializationError
- Please see:
Suite.Suite(RunnerBuilder, Class[])
.
- Parameters:
builder
- builds runners for classes in the suite.classes
- the classes in the suite.
- Throws:
org.junit.runners.model.InitializationError
- If any error.
RandomSuite
protected RandomSuite(Class<?> klass,
List<org.junit.runner.Runner> runners)
throws org.junit.runners.model.InitializationError
- Parameters:
klass
- runners
-
- Throws:
org.junit.runners.model.InitializationError
getChildren
protected List<org.junit.runner.Runner> getChildren()
- Overrides:
getChildren
in class org.junit.runners.Suite
AngocA 2011 
This work is licensed under a Creative Commons Attribution 3.0 Unported License.