|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.TestSuite com.gargoylesoftware.base.testing.RecursiveTestSuite
A launching point for executing test cases. This recusively walks through the directory structure looking for classes that end in Test.class. It then loads these classes to see if they are instances of TestCase. If so, they are added to the test suite. Once all directories have been scanned, the test cases are executed.
Constructor Summary | |
RecursiveTestSuite(File startingPath,
TestFilter testFilter)
Create an instance |
|
RecursiveTestSuite(String startingPath,
TestFilter testFilter)
Create a new instance |
Method Summary | |
static void |
main(String[] args)
Main entry point. |
void |
testFoo()
Dummy test so that JUnit doesn't complain that this suite doesn't have any tests. |
Methods inherited from class junit.framework.TestSuite |
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RecursiveTestSuite(String startingPath, TestFilter testFilter) throws 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.
IOException
- If anything goes wrong during the directory
scanning.public RecursiveTestSuite(File startingPath, TestFilter testFilter) throws 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.
IOException
- If anything goes wrong during the directory
scanning.Method Detail |
public static void main(String[] args)
args
- The argumentspublic void testFoo()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |