Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-1779

[PATCH] JUnit tests for LocaleAction

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.9
    • 2.1.9, 2.2
    • * Cocoon Core
    • None
    • Normal
    • Patch available

    Description

      While looking into the patch on COCOON-1592, I figured some test cases for the existing action would be useful, to be sure that the patch didn't break any existing functionality.

      Attached are the testcase and .xtest files, to go in src/test/org/apache/cocoon/acting. Also, in order to test the case where the locale is read from the browser's Accept-Language or server default, I had to add a setLocale method to the MockRequest; the attached diff is for this.

      Attachments

        Activity

          People

            heymjo Jorg Heymans
            ats37@hotmail.com Andrew Stevens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: