|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.fop.tools.TestConverter
TestConverter is used to process a set of tests specified in a testsuite. This class retrieves the data in the testsuite and uses FOP to convert the xml and xsl file into either an xml representation of the area tree or a pdf document. The area tree can be used for automatic comparisons between different versions of FOP or the pdf can be view for manual checking and pdf rendering.
| Field Summary | |
protected org.apache.commons.logging.impl.SimpleLog |
logger
logging instance |
| Constructor Summary | |
TestConverter()
Construct a new TestConverter |
|
| Method Summary | |
protected boolean |
compareFiles(java.io.File f1,
java.io.File f2)
Compare files. |
static void |
main(java.lang.String[] args)
This main method can be used to run the test converter from the command line. |
protected void |
runTest(org.w3c.dom.Node testcase,
org.w3c.dom.Node test)
Run a particular test. |
protected void |
runTestCase(org.w3c.dom.Node tcase)
Run a test case. |
java.util.Map |
runTests(java.lang.String fname,
java.lang.String dest,
java.lang.String compDir)
Run the Tests. |
void |
setBaseDir(java.lang.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(java.lang.String outputFormat)
Controls output format to generate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.commons.logging.impl.SimpleLog logger
| Constructor Detail |
public TestConverter()
| Method Detail |
public static void main(java.lang.String[] args)
args - command-line argumentspublic void setOutputFormat(java.lang.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(java.lang.String str)
str - base directorypublic void setDebug(boolean debug)
debug - If true, debug level, if false, error level
public java.util.Map runTests(java.lang.String fname,
java.lang.String dest,
java.lang.String compDir)
fname - filename of the input filedest - destination directorycompDir - comparison directory
protected void runTestCase(org.w3c.dom.Node tcase)
tcase - Test case node to run
protected void runTest(org.w3c.dom.Node testcase,
org.w3c.dom.Node test)
testcase - Test case to runtest - Test
protected boolean compareFiles(java.io.File f1,
java.io.File f2)
f1 - first filef2 - second file
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||