diff options
author | Finn Bock <bckfnn@apache.org> | 2005-09-12 09:08:52 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2005-09-12 09:08:52 +0000 |
commit | 4d97f973f6b2ac210cb94f98d90a59fa3fb7d0aa (patch) | |
tree | e2bd972eeee941d3e22a5e033360a53dc9e8c6c9 /test | |
parent | c1e2d2af42a624b91b950b9849b252262fcc6db1 (diff) | |
download | xmlgraphics-fop-4d97f973f6b2ac210cb94f98d90a59fa3fb7d0aa.tar.gz xmlgraphics-fop-4d97f973f6b2ac210cb94f98d90a59fa3fb7d0aa.zip |
Enabled fotree junit tests.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@280298 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
4 files changed, 6 insertions, 1 deletions
diff --git a/test/fotree/disabled-testcases.txt b/test/fotree/disabled-testcases.txt new file mode 100644 index 000000000..59cd3c9c0 --- /dev/null +++ b/test/fotree/disabled-testcases.txt @@ -0,0 +1 @@ +demo-test-failure.fo diff --git a/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java b/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java index 26f89949f..0243b4493 100644 --- a/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java +++ b/test/java/org/apache/fop/fotreetest/FOTreeTestSuite.java @@ -95,6 +95,7 @@ public final class FOTreeTestSuite { final FOTreeTester tester, final File f) { suite.addTest(new FOTreeTestCase(f.getName()) { public void runTest() throws Exception { + org.apache.commons.logging.LogFactory.getLog(this.getClass()).info("Starting " + f.getName()); prepare(tester, f); testMain(); } diff --git a/test/java/org/apache/fop/fotreetest/FOTreeTester.java b/test/java/org/apache/fop/fotreetest/FOTreeTester.java index 41931103c..f749f2aab 100644 --- a/test/java/org/apache/fop/fotreetest/FOTreeTester.java +++ b/test/java/org/apache/fop/fotreetest/FOTreeTester.java @@ -31,6 +31,8 @@ import org.apache.fop.apps.FOUserAgent; import org.apache.fop.apps.Fop; import org.apache.fop.fo.Constants; +import org.apache.fop.fotreetest.ext.TestElementMapping; + /** * Test driver class for FO tree tests. */ @@ -56,6 +58,7 @@ public class FOTreeTester { FOUserAgent ua = new FOUserAgent(); ua.setBaseURL(testFile.getParentFile().toURL().toString()); ua.setFOEventHandlerOverride(new DummyFOEventHandler(ua)); + ua.addElementMapping(new TestElementMapping()); Fop fop = new Fop(Constants.RENDER_XML, ua); SAXResult fores = new SAXResult(fop.getDefaultHandler()); diff --git a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java index 1697b8979..0b422da43 100644 --- a/test/java/org/apache/fop/fotreetest/ext/AssertElement.java +++ b/test/java/org/apache/fop/fotreetest/ext/AssertElement.java @@ -48,7 +48,7 @@ public class AssertElement extends TestObj { Locator locator, Attributes attlist, PropertyList propertyList) throws FOPException { - super.processNode(elementName, locator, attlist, propertyList); + //super.processNode(elementName, locator, attlist, propertyList); ResultCollector collector = ResultCollector.getInstance(); String propName = attlist.getValue("property"); |