diff options
Diffstat (limited to 'test/java/org/apache/fop/BasicDriverTestCase.java')
-rw-r--r-- | test/java/org/apache/fop/BasicDriverTestCase.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/java/org/apache/fop/BasicDriverTestCase.java b/test/java/org/apache/fop/BasicDriverTestCase.java index d591d6602..5f722fbc1 100644 --- a/test/java/org/apache/fop/BasicDriverTestCase.java +++ b/test/java/org/apache/fop/BasicDriverTestCase.java @@ -54,38 +54,6 @@ public class BasicDriverTestCase extends AbstractFOPTestCase { super(name); } - /** - * Tests Driver with its special constructor for FO-->PDF conversion. - * @throws Exception if anything fails - */ - public void testFO2PDFWithConstructorSetup() throws Exception { - File foFile = new File(getBaseDir(), "test/xml/bugtests/block.fo"); - ByteArrayOutputStream baout = new ByteArrayOutputStream(); - Driver driver = new Driver( - new InputSource(foFile.toURL().toExternalForm()), - baout); - - driver.setRenderer(Driver.RENDER_PDF); - driver.run(); - assertTrue("Generated PDF has zero length", baout.size() > 0); - } - - /** - * Tests Driver with InputSource and OutputStream. - * @throws Exception if anything fails - */ - public void testFO2PDFWithInputSource() throws Exception { - File foFile = new File(getBaseDir(), "test/xml/bugtests/block.fo"); - ByteArrayOutputStream baout = new ByteArrayOutputStream(); - Driver driver = new Driver(); - - driver.setInputSource(new InputSource(foFile.toURL().toExternalForm())); - driver.setOutputStream(baout); - driver.setRenderer(Driver.RENDER_PDF); - driver.run(); - assertTrue("Generated PDF has zero length", baout.size() > 0); - } - private Document loadDocument(File foFile) throws TransformerException { TransformerFactory factory = TransformerFactory.newInstance(); |