diff options
author | Glen Mazza <gmazza@apache.org> | 2004-06-25 23:35:00 +0000 |
---|---|---|
committer | Glen Mazza <gmazza@apache.org> | 2004-06-25 23:35:00 +0000 |
commit | 8a045dbc8d61f3ae7750715cd61c626fb48f775b (patch) | |
tree | 19184827a664695aca312b9f5e8f5f371cb8de0d /test/java/org/apache/fop/GenericFOPTestCase.java | |
parent | f575d5d538b1e9d2ff86a44f81247466d78ee77c (diff) | |
download | xmlgraphics-fop-8a045dbc8d61f3ae7750715cd61c626fb48f775b.tar.gz xmlgraphics-fop-8a045dbc8d61f3ae7750715cd61c626fb48f775b.zip |
1.) Moved the CommandLineOptions' InputHandler object into FOUserAgent, allowing
for a no-parameter constructor for AWTRenderer (like the other renderers). (Code is
not yet ideal in AWTRenderer, but will do the task.)
2.) AWT renderer handling now more similar to the other renderers
(simplifications in Driver, Fop).
3.) Driver.getRenderer() removed from API. (Renderer configuration now mostly
done through FOUserAgent, and setup of renderer prior to calling setRenderer().)
4.) Validity checking added to region-after, -start, -end, and -before.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197744 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java/org/apache/fop/GenericFOPTestCase.java')
-rw-r--r-- | test/java/org/apache/fop/GenericFOPTestCase.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/java/org/apache/fop/GenericFOPTestCase.java b/test/java/org/apache/fop/GenericFOPTestCase.java index 568855849..370b012a9 100644 --- a/test/java/org/apache/fop/GenericFOPTestCase.java +++ b/test/java/org/apache/fop/GenericFOPTestCase.java @@ -31,6 +31,7 @@ import junit.framework.TestCase; import junit.framework.TestSuite; import org.apache.fop.apps.Driver; +import org.apache.fop.apps.FOUserAgent; import org.apache.fop.render.pdf.PDFRenderer; import org.apache.fop.util.DigestFilter; import org.xml.sax.InputSource; @@ -112,7 +113,9 @@ public final class GenericFOPTestCase extends TestCase { private void renderPDF(String fo, String digestIn, String digestOut) throws Exception { PDFRenderer renderer = new PDFRenderer(); - renderer.setCreationDate(new Date(10000)); + FOUserAgent foUserAgent = new FOUserAgent(); + foUserAgent.setCreationDate(new Date(10000)); + renderer.setUserAgent(foUserAgent); MessageDigest outDigest = MessageDigest.getInstance("MD5"); ByteArrayOutputStream outBytes = new ByteArrayOutputStream(); DigestOutputStream out = |