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

Locale related options for @requires tag

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • tools
    • None
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: