aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2009-11-09 16:34:47 +0000
committerVincent Hennebert <vhennebert@apache.org>2009-11-09 16:34:47 +0000
commit1bc82acecdfd8d7f59641ec40e969c47cc740bd6 (patch)
treeb565303418eb7559107e514674dca0119ed08ddd /test
parent560e3f81532f0084b5e69525f4b3f95033bbc073 (diff)
downloadxmlgraphics-fop-1bc82acecdfd8d7f59641ec40e969c47cc740bd6.tar.gz
xmlgraphics-fop-1bc82acecdfd8d7f59641ec40e969c47cc740bd6.zip
Moved declaration of xml:space attribute from <text> to <page-sequence> in the XML Schema, to reflect changes from rev. 834020.
Moved validation of intermediate XML to testParserToIntermediateFormat method, so that any validation error is returned by Junit instead of being swallowed. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@834135 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java b/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java
index c246488e1..826a5c777 100644
--- a/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java
+++ b/test/java/org/apache/fop/intermediate/AbstractIntermediateTestCase.java
@@ -35,7 +35,6 @@ import javax.xml.transform.dom.DOMSource;
import org.custommonkey.xmlunit.XMLTestCase;
import org.w3c.dom.Document;
-
import org.xml.sax.SAXException;
import org.apache.commons.io.IOUtils;
@@ -95,7 +94,6 @@ public abstract class AbstractIntermediateTestCase extends XMLTestCase {
env.saveDOM(intermediate, new File(outputDir,
getName() + ".1" + getIntermediateFileExtension()));
}
- validate(intermediate);
}
/** {@inheritDoc} */
@@ -172,6 +170,7 @@ public abstract class AbstractIntermediateTestCase extends XMLTestCase {
* @throws Exception if the test fails
*/
public void testParserToIntermediateFormat() throws Exception {
+ validate(intermediate);
Source src = new DOMSource(intermediate);
Document doc = parseAndRenderToIntermediateFormat(src);
if (outputDir != null) {