public class RandomTestFinder extends TestFinder
TestFinder.ErrorHandler, TestFinder.Faultdebug, env| Constructor and Description |
|---|
RandomTestFinder(TestFinder delegate)
Constructor to create RandomTestFinder object when the
original TestFinder instance is already created and initialized.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File[] |
getFiles()
Get the files that were found by the most recent call
of read.
|
java.io.File |
getRoot()
Get the root file of the test suite, as passed in to the
init method. |
java.io.File |
getRootDir()
Get the root directory of the test suite; this is either the
root passed in to the init method or if that is a file, it is
the directory containing the file.
|
TestDescription[] |
getTests()
Get the test descriptions that were found by the most recent call
of read.
|
void |
read(java.io.File file)
Read a file, looking for test descriptions and other files that might
need to be read.
|
protected void |
scan(java.io.File file)
Scan a file, looking for test descriptions and other files that might
need to be scanned.
|
clearErrors, decodeAllArgs, decodeArg, error, error, error, foundFile, foundTestDescription, foundTestDescription, getComparator, getDefaultComparator, getErrorCount, getErrorHandler, getErrors, init, init, isFolder, lastModified, localizedError, normalize, processEntry, setComparator, setErrorHandler, setRootpublic RandomTestFinder(TestFinder delegate)
delegate - - the real test finder object.public java.io.File getRoot()
TestFinderinit method.getRoot in class TestFinderTestFinder.setRoot(java.io.File)public java.io.File getRootDir()
TestFindergetRootDir in class TestFinderpublic void read(java.io.File file)
TestFinderread in class TestFinderfile - The file to be read.public TestDescription[] getTests()
TestFindergetTests in class TestFinderTestFinder.read(java.io.File),
TestFinder.foundTestDescription(java.util.Map, java.io.File, int)public java.io.File[] getFiles()
TestFindergetFiles in class TestFinderTestFinder.read(java.io.File),
TestFinder.foundFile(java.io.File)protected void scan(java.io.File file)
TestFinderscan in class TestFinderfile - The file to scanCopyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.