Repository: oodt Updated Branches: refs/heads/master 767b18237 -> 7c43e877b
Fix for OODT-877: Fix 2 failures in o.a.o.commons.util.XMLTest on Windows 2008 Server contributed by Lewis McGibbney. Project: http://git-wip-us.apache.org/repos/asf/oodt/repo Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/6e403eec Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/6e403eec Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/6e403eec Branch: refs/heads/master Commit: 6e403eecb61847e4794d90400423830edfbefa83 Parents: 767b182 Author: Chris Mattmann <[email protected]> Authored: Sun Jul 16 23:29:39 2017 -0700 Committer: Chris Mattmann <[email protected]> Committed: Sun Jul 16 23:29:39 2017 -0700 ---------------------------------------------------------------------- commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/oodt/blob/6e403eec/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java ---------------------------------------------------------------------- diff --git a/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java b/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java index e91ca83..a6ef927 100644 --- a/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java +++ b/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java @@ -59,7 +59,7 @@ public class XMLTest extends TestCase { String result = XML.serialize(doc); crc.update(result.getBytes()); long value = crc.getValue(); - assertTrue("Stringified DOM document CRC mismatch, got value = " + value, 3880488030L == value || 2435419114L == value || /* added by Chris Mattmann: pretty print fix */3688328384L == value || /* other newline treatment */ 750262163L == value || 3738296466L == value /* Apache incubator warmed up the file, so it suffered thermal expansion */ || 1102069581L == value /* lewismc and his ALv2 header. */); + assertTrue("Stringified DOM document CRC mismatch, got value = " + value, 3880488030L == value || 2435419114L == value || /* added by Chris Mattmann: pretty print fix */3688328384L == value || /* other newline treatment */ 750262163L == value || 3738296466L == value /* Apache incubator warmed up the file, so it suffered thermal expansion */ || 1102069581L == value /* lewismc and his ALv2 header. */ || 3026567548L == value /* Windows 2008 Server CRC value */); } /** Test the {@link XML#createSAXParser} method. @@ -85,7 +85,7 @@ public class XMLTest extends TestCase { java.util.zip.CRC32 crc = new java.util.zip.CRC32(); crc.update(stringWriter.getBuffer().toString().getBytes()); long value = crc.getValue(); - assertTrue("Dumped DOM tree CRC mismatch; got " + value, value == 828793L || value == 2241317601L || value == 3208931170L /* lewismc and his ALv2 header */); + assertTrue("Dumped DOM tree CRC mismatch; got " + value, value == 828793L || value == 2241317601L || value == 3208931170L /* lewismc and his ALv2 header */ || 2172516213L == value /* Windows 2008 Server CRC value */); } /** Test the {@link XML#unwrappedText} method. */
