Author: mattmann
Date: Fri Sep  4 19:11:28 2015
New Revision: 1701315

URL: http://svn.apache.org/r1701315
Log:
Fix for CRC unit test checks from OODT-871 Issues with OODT 0.10 RC#1 
contributed by lewismc, mattmann.

Modified:
    
oodt/branches/0.10/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java

Modified: 
oodt/branches/0.10/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java
URL: 
http://svn.apache.org/viewvc/oodt/branches/0.10/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java?rev=1701315&r1=1701314&r2=1701315&view=diff
==============================================================================
--- 
oodt/branches/0.10/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java
 (original)
+++ 
oodt/branches/0.10/commons/src/test/java/org/apache/oodt/commons/util/XMLTest.java
 Fri Sep  4 19:11:28 2015
@@ -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 */);
+               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. */);
        }
 
        /** 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);
+               assertTrue("Dumped DOM tree CRC mismatch; got " + value, value 
== 828793L || value == 2241317601L || value == 3208931170L /* lewismc and his 
ALv2 header */);
        }
 
        /** Test the {@link XML#unwrappedText} method. */


Reply via email to