[
https://issues.apache.org/jira/browse/CMIS-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Florent Guillaume resolved CMIS-101.
------------------------------------
Resolution: Fixed
Committed.
r908585
> TestXMLWriter.java test case fails on mvn install, preventing successful
> build on Windows
> -----------------------------------------------------------------------------------------
>
> Key: CMIS-101
> URL: https://issues.apache.org/jira/browse/CMIS-101
> Project: Chemistry
> Issue Type: Bug
> Environment: Win 2003 SP2
> Java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build pwa64devifx-20080907
> (SR8a + IZ29767 + IZ30684 + IZ31214 + IZ31213))
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows Server 2008 amd64-64
> j9vmwa6423ifx-20080811 (JIT enabled)
> J9VM - 20080809_21892_LEdSMr / JIT - 20080620_1845_r8
> Reporter: Jeffrey Knight
> Priority: Blocker
>
> Downloaded
> http://mirror.candidhosting.com/pub/apache/maven/binaries/apache-maven-2.2.1-bin.zip
> Unzip
> cd to the directory and:
> mvn install
> Fails with the following error report:
> ----------------------------------------------------------
> Test set: org.apache.chemistry.xml.stax.TestXMLWriter
> ----------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec <<<
> FAILURE!
> testXMLWriter(org.apache.chemistry.xml.stax.TestXMLWriter) Time elapsed:
> 0.032 sec <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<...Y2RlZmdoaWphYmNkZWZn[
> aGlqYWJjZGVmZ2hpag==]
> </ws6>
> </service>> but was:<...Y2RlZmdoaWphYmNkZWZn[
> aGlqYWJjZGVmZ2hpag==]
> </ws6>
> </service>>
> at junit.framework.Assert.assertEquals(Assert.java:81)
> at junit.framework.Assert.assertEquals(Assert.java:87)
> at
> org.apache.chemistry.xml.stax.TestXMLWriter.testXMLWriter(TestXMLWriter.java:77)
> ----------------------------------------------------------
> You can't see it in the above, but the issue is (^M) line breaks.
> The following change to TestXMLWriter.java will fix it:
> 77: assertEquals(expected.replace("\r", "").trim(),
> actual.replace("\r", "").trim());
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.