Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-423

TagDirectiveTest fails on some Locales

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • WW 2.0-beta2
    • WW 2.1
    • Unit Tests
    • None
    • Locale: sv_SE

    Description

      The test com.opensymphony.webwork.views.velocity.TagDirectiveTest fails when it is run on a machine with swedish default locale. The assertNotNull for the date attribute fails. The date attribute in the MockTag is set to null when processing the attributes.
      As far as i can see this is due to the converter not beinging able to parse the format 03/25/2003 when using the Swedish Locale. Unless the actual date handling is an important part of this particular test, some other, less locale dependent attribute could be used instead. Another option would be for the test to setup the Locale to avoid different results depending on locale.

      Attachments

        Activity

          People

            plightbo@gmail.com Patrick Lightbody
            f.lindgren Fredrik Lindgren
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: