aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-07-14 23:01:56 +0000
committerGlen Mazza <gmazza@apache.org>2004-07-14 23:01:56 +0000
commit333b61994a635ba451b5ffbd73a6eaafdca5fdab (patch)
tree85977580b08d254f2084c0b9ee82f26752d2cc7a /test/java/org/apache/fop
parent3bb5fd04ea7df8db773c5e8f75aecdb788f509fa (diff)
downloadxmlgraphics-fop-333b61994a635ba451b5ffbd73a6eaafdca5fdab.tar.gz
xmlgraphics-fop-333b61994a635ba451b5ffbd73a6eaafdca5fdab.zip
Removed the Driver.run() method in favor of JAXP.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197790 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop')
-rw-r--r--test/java/org/apache/fop/BasicDriverTestCase.java32
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();