-
Bug
-
Resolution: Done
-
Minor
-
8.32.0.Final
-
None
-
-
NEW
-
NEW
Observed behavior:
OpenJDK Temurin (and I guess many other JDKs) uses Apache Xerces internally for XML parsing, which in turn uses localized exception messages.
When building Optaplanner in non-english locale, e.g. de_DE, the following tests fail, because they validate the message of thrown SAXParseExceptions and expect english text:
- GenericJaxbIOTest
- PlannerBenchmarkConfigTest
- SolverConfigTest
Expected behavior:
Tests should not rely on exception messages that are subject to locale.
As an alternative, tests could verify parts of the stacktrace that are not message text, such as the class of the exception or (in the given tests with SAXParseException) the fields that caused the parser to throw the exception.