public class RecursiveTestSuite
extends junit.framework.TestSuite
| Modifier and Type | Field and Description |
|---|---|
private TestFilter |
testFilter_ |
| Constructor and Description |
|---|
RecursiveTestSuite(java.io.File startingPath,
TestFilter testFilter)
Create an instance
|
RecursiveTestSuite(java.lang.String startingPath,
TestFilter testFilter)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.Set |
findAllTestClasses(java.io.File startingDirectory) |
private void |
findAllTestClasses(java.io.File directory,
java.util.List list) |
private junit.framework.Test |
getTestForClass(java.lang.Class clazz)
Return a test suite containing all the tests for the specified class.
|
static void |
main(java.lang.String[] args)
Main entry point.
|
void |
testFoo()
Dummy test so that JUnit doesn't complain that this suite doesn't have
any tests.
|
private final TestFilter testFilter_
public RecursiveTestSuite(java.lang.String startingPath,
TestFilter testFilter)
throws java.io.IOException
testFilter - The object that will filter out tests that we don't
wish to runstartingPath - The directory that we will start our descent in.java.io.IOException - If anything goes wrong during the directory
scanning.public RecursiveTestSuite(java.io.File startingPath,
TestFilter testFilter)
throws java.io.IOException
testFilter - The object that will filter out tests that we don't
wish to runstartingPath - The directory that we will start our descent in.java.io.IOException - If anything goes wrong during the directory
scanning.public static void main(java.lang.String[] args)
args - The argumentspublic void testFoo()
private junit.framework.Test getTestForClass(java.lang.Class clazz)
clazz - Description of Parameterprivate java.util.Set findAllTestClasses(java.io.File startingDirectory)
throws java.io.IOException
startingDirectory - Description of Parameterjava.io.IOException - Description of Exceptionprivate void findAllTestClasses(java.io.File directory,
java.util.List list)
throws java.io.IOException
directory - Description of Parameterlist - Description of Parameterjava.io.IOException - Description of Exception