|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.TestSuite
org.apache.jdo.tck.util.TestListSuite
This class implements a test suite including all test cases as specified in a testlist file. The user can specify the name of the testlist by setting the system property testlist. The default is JDOTCKTestCases.list. The swing GUI uses this class when browsing all test classes.
Field Summary | |
static java.lang.String |
TESTLIST_DEFAULT
Default of the system property testlist. |
static java.lang.String |
TESTLIST_PROPERTY
Name of the system property to specify the list of test class names. |
Constructor Summary | |
TestListSuite()
No arg constructor used by the swing GUI when browsing the test classes via the TestCollector interface. |
|
TestListSuite(java.lang.String name)
Creates a test suite with the specified name and reads the test class names fom a file specified by a system property. |
|
TestListSuite(java.lang.String name,
java.util.List classNames)
Creates a test suite with the specified name including the test classes from the specified list. |
Method Summary | |
java.util.Enumeration |
collectTests()
Returns an enumeration of Strings with qualified class names. |
protected java.util.List |
getTestClassNames()
Returns a list of fully qualified test class names. |
protected java.io.BufferedReader |
getTestListReader(java.lang.String testlist)
Returns a BufferedReader for the specified testlist filename. |
protected boolean |
isTestClassName(java.lang.String line)
Returns true if the specified String defines a test class name. |
static void |
main(java.lang.String[] args)
Runs this test suite in batch mode. |
static junit.framework.Test |
suite()
|
Methods inherited from class junit.framework.TestSuite |
addTest, addTestSuite, countTestCases, createTest, getName, getTestConstructor, run, runTest, setName, testAt, testCount, tests, toString, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String TESTLIST_PROPERTY
public static final java.lang.String TESTLIST_DEFAULT
Constructor Detail |
public TestListSuite()
public TestListSuite(java.lang.String name)
public TestListSuite(java.lang.String name, java.util.List classNames)
Method Detail |
public static void main(java.lang.String[] args)
public static junit.framework.Test suite()
public java.util.Enumeration collectTests()
collectTests
in interface junit.runner.TestCollector
protected java.util.List getTestClassNames()
protected java.io.BufferedReader getTestListReader(java.lang.String testlist) throws java.io.FileNotFoundException
java.io.FileNotFoundException
protected boolean isTestClassName(java.lang.String line)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |