diff options
author | Simon Steiner <ssteiner@apache.org> | 2020-04-02 10:41:17 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2020-04-02 10:41:17 +0000 |
commit | f301fa9f58499d597ff46966379c21b79f732f7f (patch) | |
tree | 75e6bddb48ff2af2ff4676294b50d645fe28cd88 | |
parent | 811073a987d6b585222994615666ec699cf6d19b (diff) | |
download | xmlgraphics-fop-f301fa9f58499d597ff46966379c21b79f732f7f.tar.gz xmlgraphics-fop-f301fa9f58499d597ff46966379c21b79f732f7f.zip |
Fix test on Windows
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1876041 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java b/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java index 39b6cbaf0..5d353a886 100644 --- a/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java +++ b/fop-core/src/test/java/org/apache/fop/accessibility/fo/FO2StructureTreeConverterTestCase.java @@ -27,7 +27,6 @@ import java.io.InputStream; import java.io.OutputStream; import java.io.StringWriter; -import javax.xml.transform.OutputKeys; import javax.xml.transform.Result; import javax.xml.transform.Source; import javax.xml.transform.Transformer; @@ -185,9 +184,8 @@ public class FO2StructureTreeConverterTestCase { StringWriter sw = new StringWriter(); TransformerFactory tf = TransformerFactory.newInstance(); Transformer transformer = tf.newTransformer(); - transformer.setOutputProperty(OutputKeys.INDENT, "yes"); transformer.transform(new DOMSource(doc), new StreamResult(sw)); - assertEquals(tree, sw.toString()); + assertEquals(tree.replace("\n", ""), sw.toString().replace("\n", "")); } private void testConverter(String foResourceName) throws Exception { |