diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-12 15:58:07 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-12 15:58:07 +0000 |
commit | b4af2746c8d5d3c356ef5c0efc146e5f6c27687a (patch) | |
tree | 274bb5a0785ab0cfee6ee96a3925c9270de48a9a /test/java/org/apache/fop/GenericFOPTestCase.java | |
parent | 67cf81215052e47ab2028c67dc5611a8e942fa5a (diff) | |
download | xmlgraphics-fop-b4af2746c8d5d3c356ef5c0efc146e5f6c27687a.tar.gz xmlgraphics-fop-b4af2746c8d5d3c356ef5c0efc146e5f6c27687a.zip |
Deprecated constructors Fop(int) and Fop(int, FOUserAgent).
Deprecated Fop.getVersion() in favor for Version.getVersion().
Changed every place the newly deprecated methods were called.
Ant task and TestConverter changed to fully use MIME types.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332791 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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/java/org/apache/fop/GenericFOPTestCase.java b/test/java/org/apache/fop/GenericFOPTestCase.java index 538649664..7c8a65f4d 100644 --- a/test/java/org/apache/fop/GenericFOPTestCase.java +++ b/test/java/org/apache/fop/GenericFOPTestCase.java @@ -32,6 +32,7 @@ import junit.framework.TestSuite; import org.apache.fop.apps.Fop; import org.apache.fop.apps.FOUserAgent; +import org.apache.fop.apps.MimeConstants; import org.apache.fop.util.DigestFilter; import org.xml.sax.InputSource; @@ -114,7 +115,7 @@ public final class GenericFOPTestCase extends TestCase { MessageDigest outDigest = MessageDigest.getInstance("MD5"); DigestOutputStream out = new DigestOutputStream(new ByteArrayOutputStream(), outDigest); - Fop fop = new Fop(Fop.RENDER_PDF, foUserAgent); + Fop fop = new Fop(MimeConstants.MIME_PDF, foUserAgent); fop.setOutputStream(out); InputSource source = new InputSource(new StringReader(fo)); DigestFilter filter = new DigestFilter("MD5"); |