diff options
author | Joerg Pietschmann <pietsch@apache.org> | 2003-09-27 20:57:48 +0000 |
---|---|---|
committer | Joerg Pietschmann <pietsch@apache.org> | 2003-09-27 20:57:48 +0000 |
commit | 164d432566fe2a821959c078c8230f9834e16c09 (patch) | |
tree | ac26ca460f571d28830da21cc6b6cafe8d779213 /test | |
parent | 8e8d10f646d35eb0f2cbef4960990e1a33996321 (diff) | |
download | xmlgraphics-fop-164d432566fe2a821959c078c8230f9834e16c09.tar.gz xmlgraphics-fop-164d432566fe2a821959c078c8230f9834e16c09.zip |
Fixed Testcase.
Some style changes.
Replace FIXME with TODO
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/java/org/apache/fop/BasicDriverTestCase.java | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/test/java/org/apache/fop/BasicDriverTestCase.java b/test/java/org/apache/fop/BasicDriverTestCase.java index 6e3f122b2..0838ef1ad 100644 --- a/test/java/org/apache/fop/BasicDriverTestCase.java +++ b/test/java/org/apache/fop/BasicDriverTestCase.java @@ -71,7 +71,6 @@ import org.apache.avalon.framework.logger.NullLogger; import org.apache.commons.io.output.ByteArrayOutputStream; import org.apache.fop.apps.Driver; import org.apache.fop.apps.InputHandler; -import org.apache.fop.apps.TraxInputHandler; import org.apache.fop.apps.XSLTInputHandler; import org.w3c.dom.Document; @@ -207,29 +206,9 @@ public class BasicDriverTestCase extends AbstractFOPTestCase { driver.setRenderer(Driver.RENDER_PDF); InputHandler handler = new XSLTInputHandler(xmlFile, xsltFile); - handler.run(driver); + driver.render(handler); assertTrue("Generated PDF has zero length", baout.size() > 0); } - /** - * Tests Driver with TraxInputHandler and OutputStream. - * @throws Exception if anything fails - */ - public void testFO2PDFWithTraxInputHandler() throws Exception { - File xmlFile = new File(getBaseDir(), "test/xml/1.xml"); - File xsltFile = new File(getBaseDir(), "test/xsl/doc.xsl"); - ByteArrayOutputStream baout = new ByteArrayOutputStream(); - Driver driver = new Driver(); - ContainerUtil.enableLogging(driver, this.logger); - driver.setOutputStream(baout); - driver.setRenderer(Driver.RENDER_PDF); - - InputHandler handler = new TraxInputHandler(xmlFile, xsltFile); - handler.run(driver); - - assertTrue("Generated PDF has zero length", baout.size() > 0); - } - - } |