| java.lang.Object com.reeltwo.jumble.fast.TestOrder
TestOrder | public class TestOrder implements Serializable,ClassLoaderCloneable(Code) | | A class indicating the order in which tests should be run. Contains an array
of test classes and associates an ordering with tests.
author: Tin Pavlinic version: $Revision: 496 $ |
Field Summary | |
final public static boolean | DEBUG |
Constructor Summary | |
public | TestOrder(Class[] testClasses) Creates a new TestOrder with the specified test classes and no
particular ordering. | public | TestOrder(Class[] testClasses, long[] runtimes) Creates a new TestOrder with the specified test classes and runtimes. | public | TestOrder(Class[] testClasses, int[] order) | public | TestOrder(String[] testClasses, int[] order) Constructor used to clone the object. |
DEBUG | final public static boolean DEBUG(Code) | | Flag to turn debugging on and off
|
TestOrder | public TestOrder(Class[] testClasses)(Code) | | Creates a new TestOrder with the specified test classes and no
particular ordering.
Parameters: testClasses - |
TestOrder | public TestOrder(Class[] testClasses, long[] runtimes)(Code) | | Creates a new TestOrder with the specified test classes and runtimes.
Parameters: testClasses - Parameters: runtimes - the runtimes of the tests. |
TestOrder | public TestOrder(Class[] testClasses, int[] order)(Code) | | Creates a new TestOrder with the specified test classes and ordering
Parameters: testClasses - Parameters: order - order permuation |
TestOrder | public TestOrder(String[] testClasses, int[] order)(Code) | | Constructor used to clone the object.
Parameters: testClasses - string of test classes Parameters: order - order permuation |
clone | public Object clone(ClassLoader loader) throws ClassNotFoundException(Code) | | Clones this object using a different class loader to achieve
class isolation. In our application, the classloader will mutate
the class being tested.
Parameters: loader - the new class loader a clone of this in the different class loader |
createOrdering | static int[] createOrdering(int length)(Code) | | Creates a default ordering
|
createOrdering | static int[] createOrdering(long[] runtimes)(Code) | | Creates an ordering based on the runtimes
|
getTestClasses | public String[] getTestClasses()(Code) | | Gets the names of the test classes that were timed.
the test classes |
getTestCount | public int getTestCount()(Code) | | Returns the total number of tests.
the number of tests. |
getTestIndex | public int getTestIndex(int order)(Code) | | Returns the index of the test in order order .
Parameters: order - the ordered position of the test to run the index of the order th test |
|
|