Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-851

Updated junit test "XmlReportWriterTest.java" unreliable/fails: unmappable character for encoding UTF8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0-RC1
    • 2.0-RC1
    • Core
    • None
    • Fedora 9; i386; Sun jdk1.5.0_15; LANG=en_US.utf8

    Description

      Checked out version 671603, ran "ant" with the following results:

      1) when building, XmlReportWriterTest.java gets the following warning:
      [javac] /home/hyerle/usr/ivy/live/ivy/test/java/org/apache/ivy/plugins/report/XmlReportWriterTest.java:74: warning: unmappable character for encoding UTF8
      [javac] String expectedOrg = "organisation=\"sp�cial\"";
      [javac]

      2) when running the junit tests, one gets the following failure:
      [junit] Running org.apache.ivy.plugins.report.XmlReportWriterTest
      [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 1,626 sec
      [junit] Test org.apache.ivy.plugins.report.XmlReportWriterTest FAILED

      This is reported as:
      XML doesn't contain the organisation

      junit.framework.AssertionFailedError: XML doesn't contain the organisation
      at org.apache.ivy.plugins.report.XmlReportWriterTest.testWriteOrigin(XmlReportWriterTest.java:80)

      This is presumably because the mapping of the compiled string "special" (accent on the 'e') without a valid mapping does not match the contents of the test report ("test/repositories/1/special-encoding-root-ivy.xml").

      This test was checked in on 29-may as revision 661275 by gscokart.

      It is unclear to me if the test is broken for certain configurations, or only certain LANG configurations are supported, or the original bug (IVY-816) was never completely fixed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hyerle@hp.com Robert Hyerle
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: