Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8230760

SpinnerTest: some failing tests for Locales != English

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx12
    • Fix Version/s: tbd
    • Component/s: javafx

      Description

      in my local environment with Locale.German some tests are failing:

      dblSpinner_testToString_valueInRange
      junit.framework.ComparisonFailure: expected:<0[.]3> but was:<0[,]3>

      test_jdk_8150946_testCommit_valid
      junit.framework.AssertionFailedError: expected:<2.5> but was:<2.0>

      dblSpinner_testFromString_valueInRange
      junit.framework.AssertionFailedError: expected:<0.3> but was:<0.0>

      test_jdk_8150946_testCancel
      junit.framework.ComparisonFailure: expected:<2[.]5> but was:<2[,]5>

      reason seems to be hard-coded expected values, assuming English Locale: the default DoubleStringConverter used by DoubleSpinnerValueFactory has a rudimentary locale support by DecimalFormat("#.##")

        Attachments

          Activity

            People

            • Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              fastegal Jeanette Winzenburg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: