From 499ce535625915cb4bf2e00b1801e4a6c3dd04b8 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 24 Jan 2006 14:21:46 +0000 Subject: Command-line support for the intermediate format: Use "-atin" to specify an area tree XML file. Refactoring of the InputHandler to accomodate the IF as input format and to make responsibilities clearer in general. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@371922 13f79535-47bb-0310-9956-ffa450edef68 --- test/java/org/apache/fop/BasicDriverTestCase.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/java/org/apache/fop/BasicDriverTestCase.java b/test/java/org/apache/fop/BasicDriverTestCase.java index 100f1eaeb..c74ecaad9 100644 --- a/test/java/org/apache/fop/BasicDriverTestCase.java +++ b/test/java/org/apache/fop/BasicDriverTestCase.java @@ -110,11 +110,9 @@ public class BasicDriverTestCase extends AbstractFOPTestCase { File xmlFile = new File(getBaseDir(), "test/xml/1.xml"); File xsltFile = new File(getBaseDir(), "test/xsl/doc.xsl"); ByteArrayOutputStream baout = new ByteArrayOutputStream(); - Fop fop = new Fop(MimeConstants.MIME_PDF); - fop.setOutputStream(baout); InputHandler handler = new InputHandler(xmlFile, xsltFile, null); - handler.render(fop); + handler.renderTo(null, MimeConstants.MIME_PDF, baout); assertTrue("Generated PDF has zero length", baout.size() > 0); } -- cgit v1.2.3