public class TestConverter extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.impl.SimpleLog |
logger
logging instance
|
| Constructor and Description |
|---|
TestConverter()
Construct a new TestConverter
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
compareFiles(File f1,
File f2)
Compare files.
|
static void |
main(String[] args)
This main method can be used to run the test converter from
the command line.
|
protected void |
runTest(Node testcase,
Node test)
Run a particular test.
|
protected void |
runTestCase(Node tcase)
Run a test case.
|
Map |
runTests(String fname,
String dest,
String compDir)
Run the Tests.
|
void |
setBaseDir(String str)
Sets the base directory.
|
void |
setDebug(boolean debug)
Controls whether to set logging to debug level
|
void |
setFailOnly(boolean fail)
Controls whether to process only the tests which are specified as fail
in the test results.
|
void |
setOutputFormat(String outputFormat)
Controls output format to generate
|
public static void main(String[] args)
args - command-line argumentspublic void setOutputFormat(String outputFormat)
outputFormat - the MIME type of the output formatpublic void setFailOnly(boolean fail)
fail - True if only fail tests should be processedpublic void setBaseDir(String str)
str - base directorypublic void setDebug(boolean debug)
debug - If true, debug level, if false, error levelpublic Map runTests(String fname, String dest, String compDir)
fname - filename of the input filedest - destination directorycompDir - comparison directoryprotected void runTestCase(Node tcase)
tcase - Test case node to runprotected void runTest(Node testcase, Node test)
testcase - Test case to runtest - TestCopyright © 2025 Apache Software Foundation. All rights reserved.