Package org.castor.xmlctf
Class TestCaseAggregator
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.castor.xmlctf.TestCaseAggregator
-
- All Implemented Interfaces:
junit.framework.Test
public class TestCaseAggregator extends junit.framework.TestCase
This class is used to inspect recursively a hierarchy of directories that contain CTF tests (jars or directories). A JUnit TestSuite is created for each directory.- Version:
- $Revision: 6787 $ $Date: 2006-04-26 15:14:53 -0600 (Wed, 26 Apr 2006) $
- Author:
- Sebastien Gignoux, Arnaud Blandin
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PRINT_STACK_TRACE
Name of the system property to set up the printStackTrace mode.static java.lang.String
VERBOSE_PROPERTY
Name of the system property to set up the verbose mode.
-
Constructor Summary
Constructors Modifier Constructor Description TestCaseAggregator(java.io.File directory, java.lang.String testOutputRoot)
Create a new TestCaseAggregator which will inspect the directory given in parameter.protected
TestCaseAggregator(java.io.File directory, java.lang.String directoryToHere, java.lang.String testOutputRoot)
Create a new TestCaseAggregator which will inspect the directory given in parameter.TestCaseAggregator(java.lang.String name)
Creates a new TestCaseAggregator with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description junit.framework.Test
suite()
Assembles and returns a test suite containing all known tests.-
Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
-
-
-
Field Detail
-
VERBOSE_PROPERTY
public static final java.lang.String VERBOSE_PROPERTY
Name of the system property to set up the verbose mode.- See Also:
- Constant Field Values
-
PRINT_STACK_TRACE
public static final java.lang.String PRINT_STACK_TRACE
Name of the system property to set up the printStackTrace mode.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TestCaseAggregator
public TestCaseAggregator(java.lang.String name)
Creates a new TestCaseAggregator with the given name.- Parameters:
name
- the name of this TestCaseAggregator
-
TestCaseAggregator
public TestCaseAggregator(java.io.File directory, java.lang.String testOutputRoot)
Create a new TestCaseAggregator which will inspect the directory given in parameter.- Parameters:
directory
- the directory to inspect for test case and subdirectorytestOutputRoot
- the path to the directory where the test in this directory can put there temporary files.
-
TestCaseAggregator
protected TestCaseAggregator(java.io.File directory, java.lang.String directoryToHere, java.lang.String testOutputRoot)
Create a new TestCaseAggregator which will inspect the directory given in parameter.- Parameters:
directory
- the directory to inspect for test case and subdirectorydirectoryToHere
- the directory path above "directory"testOutputRoot
- the path to the directory where the test in this directory can put there temporary files.
-
-