aboutsummaryrefslogtreecommitdiffstats
path: root/test/java/org/apache/fop/fotreetest/FOTreeUnitTester.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/java/org/apache/fop/fotreetest/FOTreeUnitTester.java')
-rw-r--r--test/java/org/apache/fop/fotreetest/FOTreeUnitTester.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/java/org/apache/fop/fotreetest/FOTreeUnitTester.java b/test/java/org/apache/fop/fotreetest/FOTreeUnitTester.java
index e19547345..a7fa11950 100644
--- a/test/java/org/apache/fop/fotreetest/FOTreeUnitTester.java
+++ b/test/java/org/apache/fop/fotreetest/FOTreeUnitTester.java
@@ -26,11 +26,13 @@ import javax.xml.parsers.SAXParserFactory;
import junit.framework.TestCase;
+import org.xml.sax.XMLReader;
+
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.apps.Fop;
import org.apache.fop.apps.FopFactory;
import org.apache.fop.fo.FOEventHandler;
-import org.xml.sax.XMLReader;
+import org.apache.fop.util.ConsoleEventListenerForTests;
/**
@@ -82,6 +84,8 @@ public abstract class FOTreeUnitTester extends TestCase {
public void setUp(String filename, FOEventHandlerFactory factory) throws Exception {
FOUserAgent ua = fopFactory.newFOUserAgent();
ua.setFOEventHandlerOverride(factory.createFOEventHandler(ua));
+ ua.getEventBroadcaster().addEventListener(
+ new ConsoleEventListenerForTests(filename));
Fop fop = fopFactory.newFop(ua);