aboutsummaryrefslogtreecommitdiffstats
path: root/test/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-08-26 11:50:31 +0000
committerJeremias Maerki <jeremias@apache.org>2008-08-26 11:50:31 +0000
commit137ca17c1ca4cbe8a64397f78e8c910d529dc61c (patch)
tree10a9a5eaacbe2793416f6f47e67b8004b61025e9 /test/java
parent62b7eb34cb975f45ba42107e27f9098490915085 (diff)
downloadxmlgraphics-fop-137ca17c1ca4cbe8a64397f78e8c910d529dc61c.tar.gz
xmlgraphics-fop-137ca17c1ca4cbe8a64397f78e8c910d529dc61c.zip
Added a default ErrorListener just to be on the safe side.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AreaTreeNewDesign@689039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/java')
-rw-r--r--test/java/org/apache/fop/visual/AbstractPSPDFBitmapProducer.java2
-rw-r--r--test/java/org/apache/fop/visual/BitmapProducerJava2D.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/java/org/apache/fop/visual/AbstractPSPDFBitmapProducer.java b/test/java/org/apache/fop/visual/AbstractPSPDFBitmapProducer.java
index 9afe66f9b..0d976219d 100644
--- a/test/java/org/apache/fop/visual/AbstractPSPDFBitmapProducer.java
+++ b/test/java/org/apache/fop/visual/AbstractPSPDFBitmapProducer.java
@@ -39,6 +39,7 @@ import org.apache.commons.io.IOUtils;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
+import org.apache.fop.util.DefaultErrorListener;
/**
* BitmapProducer implementation that uses the PS or PDF renderer and an external converter
@@ -135,6 +136,7 @@ public abstract class AbstractPSPDFBitmapProducer extends AbstractBitmapProducer
SAXResult res = new SAXResult(fop.getDefaultHandler());
Transformer transformer = getTransformer(context);
+ transformer.setErrorListener(new DefaultErrorListener(log));
transformer.transform(new StreamSource(src), res);
} finally {
IOUtils.closeQuietly(out);
diff --git a/test/java/org/apache/fop/visual/BitmapProducerJava2D.java b/test/java/org/apache/fop/visual/BitmapProducerJava2D.java
index 9d4db6391..bd78fd93f 100644
--- a/test/java/org/apache/fop/visual/BitmapProducerJava2D.java
+++ b/test/java/org/apache/fop/visual/BitmapProducerJava2D.java
@@ -38,6 +38,7 @@ import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.apps.MimeConstants;
+import org.apache.fop.util.DefaultErrorListener;
/**
* BitmapProducer implementation that uses the Java2DRenderer to create bitmaps.
@@ -80,6 +81,7 @@ public class BitmapProducerJava2D extends AbstractBitmapProducer implements Conf
SAXResult res = new SAXResult(fop.getDefaultHandler());
Transformer transformer = getTransformer(context);
+ transformer.setErrorListener(new DefaultErrorListener(log));
transformer.transform(new StreamSource(src), res);
} finally {
IOUtils.closeQuietly(out);