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

SpinnerTest: some failing tests for Locales != English

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx12
    • 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("#.##")

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

              Created:
              Updated: