public class ExpandTestFinder extends TagTestFinder
-allowKeyword
option.TagTestFinder
TestFinder.ErrorHandler, TestFinder.Fault
debug, env
Constructor and Description |
---|
ExpandTestFinder() |
Modifier and Type | Method and Description |
---|---|
protected int |
decodeArg(java.lang.String[] args,
int i)
Decode the arg at a specified position in the arg array.
|
protected void |
foundTestDescription(java.util.Map entries,
java.io.File file,
int line)
Report that data for a test description has been found.
|
void |
init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env)
Initialize the data required by the finder.
|
protected void |
processEntry(java.util.Map entries,
java.lang.String name,
java.lang.String value)
Handle a test description entry read from a file.
|
addExtension, exclude, exclude, getClassForExtension, getCurrentFile, getInitialTag, parseComment, scan, scanFile, setInitialTag
clearErrors, decodeAllArgs, error, error, error, foundFile, foundTestDescription, getComparator, getDefaultComparator, getErrorCount, getErrorHandler, getErrors, getFiles, getRoot, getRootDir, getTests, init, isFolder, lastModified, localizedError, normalize, read, setComparator, setErrorHandler, setRoot
protected int decodeArg(java.lang.String[] args, int i) throws TestFinder.Fault
TagTestFinder
decodeArg
in class TagTestFinder
args
- The array of argumentsi
- The next argument to be decoded.TestFinder.Fault
- If there is a problem with the value of the current arg,
such as a bad value to an option, the Fault exception can be
thrown. The exception should NOT be thrown if the current
arg is unrecognized: in that case, an implementation should
delegate the call to the supertype.public void init(java.lang.String[] args, java.io.File testSuiteRoot, TestEnvironment env) throws TestFinder.Fault
TestFinder
init
in class TestFinder
args
- An array of strings specified as arguments in the environment. Null
indicates no args.testSuiteRoot
- The root file that will be passed to test descriptions read
by the finder.env
- The environment being used to run the test. May be null.TestFinder.Fault
- if there is a problem interpreting any of args.protected void foundTestDescription(java.util.Map entries, java.io.File file, int line)
TestFinder
foundTestDescription
in class TestFinder
entries
- The data for the test descriptionfile
- The file being readline
- The line number within the file (used for error messages)protected void processEntry(java.util.Map entries, java.lang.String name, java.lang.String value)
TestFinder
processEntry
in class TestFinder
entries
- The dictionary of the entries being readname
- The name of the entry that has been readvalue
- The value of the entry that has been readCopyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.