Skip to content

Fix Locale-Dependent XML Configuration Tests - #19729

Open
noojung wants to merge 1 commit into
spring-projects:mainfrom
noojung:gh-19725
Open

noojung wants to merge 1 commit into
spring-projects:mainfrom
noojung:gh-19725

Conversation

@noojung

@noojung noojung commented Sep 15, 2026

Copy link
Copy Markdown

The messages in these assertions are produced by the JDK's XML parser and are localized based on the default locale, so they are not stable values for the tests to depend on.

I think asserting XmlBeanDefinitionStoreException with a SAXParseException root cause is sufficient here. The purpose of these tests is to verify that the invalid XML configuration fails schema validation, rather than to verify the exact diagnostic message produced by Xerces.

This change removes the locale-dependent message assertions while retaining the exception type assertions.

Closes gh-19725

Closes spring-projectsgh-19725

Signed-off-by: Hyunwoo Jung <hyunwoojung@kakao.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XML configuration tests fail with a non-English locale

2 participants