public class BinaryTestFinder extends TestFinder
TestFinder.ErrorHandler, TestFinder.Fault
debug, env
Constructor and Description |
---|
BinaryTestFinder()
Create an uninitialized binary test finder.
|
BinaryTestFinder(java.io.File jtdFile)
Deprecated.
Use BinaryTestFinder(File testSuiteRoot, File jtdFile) instead
|
BinaryTestFinder(java.io.File testSuiteRoot,
java.io.File jtdFile)
Deprecated.
Use BinaryTestFinder(File, File, TestEnvironment) with null as
the last argument.
|
Modifier and Type | Method and Description |
---|---|
protected int |
decodeArg(java.lang.String[] args,
int i)
Decodes any args needed by BinaryTestFinder.
|
void |
init(java.io.File testSuiteRoot,
java.io.File jtdFile)
Deprecated.
Use init(File, File TestEnvironment) with null args as needed.
|
void |
init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env)
Initialize a new BinaryTestFinder.
|
boolean |
isFolder(java.io.File path)
Determine whether a location corresponds to a directory (folder) or
an actual file.
|
long |
lastModified(java.io.File f)
Determine when the last time this path was modified.
|
protected void |
scan(java.io.File file)
Given a File, scan to look for other files or tests.
|
clearErrors, decodeAllArgs, error, error, error, foundFile, foundTestDescription, foundTestDescription, getComparator, getDefaultComparator, getErrorCount, getErrorHandler, getErrors, getFiles, getRoot, getRootDir, getTests, init, localizedError, normalize, processEntry, read, setComparator, setErrorHandler, setRoot
public BinaryTestFinder()
public BinaryTestFinder(java.io.File jtdFile) throws TestFinder.Fault
jtdFile
- The binary file containing the precompiled test descriptions.
The file should be an absolute file.TestFinder.Fault
- if there is a problem while reading the data file.BinaryTestFinder(File, File)
public BinaryTestFinder(java.io.File testSuiteRoot, java.io.File jtdFile) throws TestFinder.Fault
jtdFile
- The binary file containing the precompiled test descriptions.
If the file is relative, it will be evaluated relative to testSuiteRoot.testSuiteRoot
- The root file of the Test Suite.
This is usually a file called testsuite.htmlTestFinder.Fault
- if there is a problem while reading the data file.public void init(java.lang.String[] args, java.io.File testSuiteRoot, TestEnvironment env) throws TestFinder.Fault
init
in class TestFinder
args
- Any arguments needed by the TestFinder. You must pass "-binary"
followed by the path to the binary file. If the file is relative,
it will be evaluated relative to testSuiteRoot.testSuiteRoot
- The root file of the Test Suite.
This is usually a file called testsuite.htmlenv
- Environment file for the TestFinder. Not used by BinaryTestFinder.TestFinder.Fault
- if there is a problem while reading the data file.public void init(java.io.File testSuiteRoot, java.io.File jtdFile) throws TestFinder.Fault
testSuiteRoot
- The root file of the Test Suite.
This is usually a file called testsuite.htmljtdFile
- The file containing the binary data for the test descriptions.
If the file is relative, it will be evaluated relative to testSuiteRoot.TestFinder.Fault
- if there is a problem while reading the data file.protected int decodeArg(java.lang.String[] args, int i) throws TestFinder.Fault
decodeArg
in class TestFinder
args
- An array of arguments, containing the next argument to be
decoded.i
- The position in the args array of the next argument to be
decoded.TestFinder.Fault
- if any problems occur while decoding the next argumentpublic long lastModified(java.io.File f)
TestFinder
lastModified
in class TestFinder
f
- The location in question.public boolean isFolder(java.io.File path)
TestFinder
isFolder
in class TestFinder
path
- The location in question.protected void scan(java.io.File file)
scan
in class TestFinder
file
- The file to scanCopyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.