Uploaded image for project: 'Spring Web Flow'
  1. Spring Web Flow
  2. SWF-555

MvcViewTests fails because of Locale dependency

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0.RC1
    • 2.0.0.RC1
    • None

    Description

      When building SWF, one of the tests fails as follows:

      [junit] Testcase: testRenderWithBindingModel(org.springframework.webflow.mvc.view.MvcViewTests): FAILED
      [junit] expected:<Jan 1, 2008> but was:<1-jan-2008>
      [junit] junit.framework.AssertionFailedError: expected:<Jan 1, 2008> but was:<1-jan-2008>
      [junit] at org.springframework.webflow.mvc.view.MvcViewTests.testRenderWithBindingModel(MvcViewTests.java:80)

      MvcViewTests.testRenderWithBindingModel is relying on a US locale. Either the expected result shouldn't be a fixed String, or a dedicated Formatter should be used that always produces US date representations.

      Attachments

        Activity

          People

            kdonald Keith Donald
            jkuipers Joris Kuipers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: