|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.tools.TestConverter
public class 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. Modified by Mark Lillywhite mark-fop@inomial.com to use the new Driver interface.
Constructor Summary | |
---|---|
TestConverter()
|
Method Summary | |
---|---|
protected boolean |
compareFiles(File f1,
File f2)
Compare files. |
protected Node |
locateResult(Node testcase,
String id)
|
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. |
HashMap |
runTests(String fname,
String dest,
String compDir)
Run the Tests. |
void |
setBaseDir(String str)
|
void |
setFailOnly(boolean fail)
|
void |
setOutputPDF(boolean pdf)
|
void |
setParserFeatures(XMLReader parser)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestConverter()
Method Detail |
---|
public static void main(String[] args)
public void setOutputPDF(boolean pdf)
public void setFailOnly(boolean fail)
public void setBaseDir(String str)
public HashMap runTests(String fname, String dest, String compDir)
protected void runTestCase(Node tcase)
protected void runTest(Node testcase, Node test)
protected boolean compareFiles(File f1, File f2)
public void setParserFeatures(XMLReader parser) throws FOPException
FOPException
protected Node locateResult(Node testcase, String id)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |