That particular test is, unfortunately, rather rigid. Two logically equivalent 
XML documents could have vastly different CRCs thanks to differences in 
indentation or end-of-line characters.

You might add some print statements to see what the generated output was as 
well as the expected output. If they're close, you could ignore this particular 
test failure.

Longer term, the test should be re-written.


On 2011.Mar.3, at 11.52p, Daniel Lee wrote:

> Hi all,
> 
> I'm finding that the XMLTest inside commons fails for me. Specifically, the
> testDOM() test:
> junit.framework.AssertionFailedError: Stringified DOM document CRC mismatch,
> got value = 3750466362
> 
> The test is checking for a value of 3880488030L.
> 
> I was wondering if anyone else had the same issue. (couldn't find anything
> related on Jira)
> 
> I'm running in Windows 7, Java 1.6 jre. I downloaded the current source
> from SVN.
> 
> 
> Thanks.
> 
> 
> Daniel

Reply via email to