quarkiverse / quarkus-cxf

Quarkus CXF Extension to support SOAP based web services.
Apache License 2.0
72 stars 57 forks source link

XmlSchemaValidationTest fails on the different language settings #1327

Closed zhfeng closed 3 months ago

zhfeng commented 3 months ago

I'm running the tests on my local machine which is using zh_CN.utf-8. Then XmlSchemaValidationTest is failing with

[ERROR]   XmlSchemaValidationTest.addCheckResultInvalid:74 
Expecting throwable message:
  "Unmarshalling Error: cvc-maxInclusive-valid: 对于类型为 'smallIntType' 的 maxInclusive '1024', 值 '1025' 不具有面有效性。 "
to contain:
  "arshalling Error: cvc-maxInclusive-valid: Value '1025' is not facet-valid with respect to maxInclusive '1024' for type 'smallIntType'."
but did not.

The cause message looks like from i18n resource bunlde and it transforms some words to Chinese. This can be fixed by setting LANG environment.