Skip to content

Unit test in EvalTagTests fails with French as default locale [SPR-11392] #16019

@spring-projects-issues

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-11392 and commented

The testPrintFormattedScopedAttributeResult() test method from org.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

Metadata

Metadata

Assignees

Labels

status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions