|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.javatest.TestFinder
com.sun.javatest.finder.BinaryTestFinder
public class BinaryTestFinder
A TestFinder to read a compressed binary file containing the previously "compiled" results of some other test finder.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.sun.javatest.TestFinder |
|---|
TestFinder.ErrorHandler, TestFinder.Fault |
| Field Summary |
|---|
| Fields inherited from class com.sun.javatest.TestFinder |
|---|
debug, env |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.sun.javatest.TestFinder |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.html
TestFinder.Fault - if there is a problem while reading the data file.| Method Detail |
|---|
public void init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env)
throws TestFinder.Fault
init in class TestFinderargs - 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 TestFinderargs - 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 TestFinderf - The location in question.public boolean isFolder(java.io.File path)
TestFinder
isFolder in class TestFinderpath - The location in question.protected void scan(java.io.File file)
scan in class TestFinderfile - The file to scan
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||