Unit test in EvalTagTests fails with French as default locale [SPR-11392] #16019
Labels
status: backported
An issue that has been backported to maintenance branches
type: task
A general task
Milestone
Sébastien Deleuze opened SPR-11392 and commented
The
testPrintFormattedScopedAttributeResult()
test method fromorg.springframework.web.servlet.tags.EvalTagTests
is locale dependent.When I built Spring from sources with French locale, this test failed. When I switched to English locale, it passed.
The current assertion is hard coded ("25%"). I think it should take into account the default locale in order to have the test pass regardless of the default locale of the computer running the tests. In my case it is "25%" with English locale and "25 %" with French locale.
Affects: 3.2.7, 4.0.1
Backported to: 3.2.8
The text was updated successfully, but these errors were encountered: