Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-1331

testGetCountryNameString fails

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      5
    • Documentation Status:
      Not Required

      Description

      When I did "mvn package" dspace-3.0-rc1-release at dsapce-src, the above test was failure.
      The report says as follows.

      -------------------------------------------------------------------------------
      Test set: org.dspace.statistics.util.TestLocationUtils
      -------------------------------------------------------------------------------
      Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec <<< FAILURE!
      testGetCountryNameString(org.dspace.statistics.util.TestLocationUtils) Time elapsed: 0.016 sec <<< FAILURE!
      org.junit.ComparisonFailure: expected:<[United States]> but was:<[アメリカ合衆国]>
      at org.dspace.statistics.util.TestLocationUtils.testGetCountryNameString(TestLocationUtils.java:64)

      ---------------

      My default locale is Locale.Japanese. This failure is fixed when I changed the line 64 of TestLocationUtils.java
      as follows (added Locale.ENGLISH as the second parameter).

      assertEquals("United States", LocationUtils.getCountryName(
      "US", Locale.ENGLISH));

      Reporter: Keiji Suzuki
      E-mail: zuki.ebetsu@gmail.com

        Attachments

          Activity

            People

            Assignee:
            mwood Mark H. Wood
            Reporter:
            zuki.ebetsu Keiji Suzuki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: