SpinnerTest: some failing tests for Locales != English

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: jfx12
    • Component/s: javafx

      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("#.##")

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

              Created:
              Updated: