Uploaded image for project: 'Spring Batch Admin'
  1. Spring Batch Admin
  2. BATCHADM-234

Issue with numeric decimal separator in tests

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: Manager
    • Labels:
      None
    • Environment:
      Numeric decimals separator depends on locale

      Description

      All string comparisons of numeric values should be made in one locale, i.e. in file
      org.springframework.batch.admin.history.CumulativeHistory.java I would suggest:
      @Override
      public String toString()

      { // for example, set here, or in some other place sinlge locale for comparison // could be Locale.US Locale.setDefault(Locale.US); return String.format("[N=%d, min=%f, max=%f, mean=%f, sigma=%f]", count, min, max, getMean(), getStandardDeviation()); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yessil Yessil Khassenov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: