aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/GenericFOPTestCase.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-07-24 05:47:45 +0000
committerGlen Mazza <gmazza@apache.org>2004-07-24 05:47:45 +0000
commit3bcfed2d9b7e68e4bfcf6738bf5c9a28063d59d5 (patch)
tree9b75a0917ed78fffc5ee848e06ab5bba3315d0b1 /test/java/org/apache/fop/GenericFOPTestCase.java
parent7796f1b60829f28d3173b658871cd0fa46d4c258 (diff)
downloadxmlgraphics-fop-3bcfed2d9b7e68e4bfcf6738bf5c9a28063d59d5.tar.gz
xmlgraphics-fop-3bcfed2d9b7e68e4bfcf6738bf5c9a28063d59d5.zip
Combined the apps.Driver class into apps.Fop. (195 LOC total.) Primary
benefit is to make Fop self-documenting in external code, also none of the API ideas called for retention of the Driver class (even if there were different ideas for its replacement). Let's try this for a few weeks, if it confuses people too much (or when the API starts to grow again) we can bring back Driver, possibly under a different name, apps.FopProcess, perhaps. See also: http://marc.theaimsgroup.com/?l=fop-dev&m=108947697611032&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108966015504506&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108942673103344&w=2 http://marc.theaimsgroup.com/?l=fop-dev&m=108958756030147&w=2 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/GenericFOPTestCase.java')
-rw-r--r--test/java/org/apache/fop/GenericFOPTestCase.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/java/org/apache/fop/GenericFOPTestCase.java b/test/java/org/apache/fop/GenericFOPTestCase.java
index 39803329f..69e9e15b0 100644
--- a/test/java/org/apache/fop/GenericFOPTestCase.java
+++ b/test/java/org/apache/fop/GenericFOPTestCase.java
@@ -30,7 +30,7 @@ import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
-import org.apache.fop.apps.Driver;
+import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.render.pdf.PDFRenderer;
import org.apache.fop.util.DigestFilter;
@@ -118,12 +118,12 @@ public final class GenericFOPTestCase extends TestCase {
ByteArrayOutputStream outBytes = new ByteArrayOutputStream();
DigestOutputStream out =
new DigestOutputStream(new ByteArrayOutputStream(), outDigest);
- Driver driver = new Driver(Driver.RENDER_PDF, foUserAgent);
- driver.setOutputStream(out);
+ Fop fop = new Fop(Fop.RENDER_PDF, foUserAgent);
+ fop.setOutputStream(out);
InputSource source = new InputSource(new StringReader(fo));
DigestFilter filter = new DigestFilter("MD5");
filter.setParent(parserFactory.newSAXParser().getXMLReader());
- filter.setContentHandler(driver.getDefaultHandler());
+ filter.setContentHandler(fop.getDefaultHandler());
filter.parse(source);
String digestInActual = digestToString(filter.getDigestValue());
if (!digestIn.equals(digestInActual)) {