Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903007

Locale related options for @requires tag

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Some locale related tests are only supposed to run under a specific locale, e.g., test comparing an error output would eliminate the boilerplate code such as:
      ```
      Locale orig = Locale.getDefault();
      try {
          Locale.setDefault(Locale.US);
          // test code
      } finally {
          Locale.setDefault(orig);
      }
      ```

      by introducing
      ```
      @requires user.language=en && user.country=US
      ```
      option.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              naoto Naoto Sato
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: