When running mvn clean install -Dgpg.skip=true on a system with a german locale, many tests fail with:
java.lang.NumberFormatException: For input string: "18,58"
The number in the exception messages changes randomly as it is generated by javafaker. It seems like javafaker does not respect the locale when formatting prices, see: https://github.com/DiUS/java-faker/issues/433.
When running
mvn clean install -Dgpg.skip=true
on a system with a german locale, many tests fail with:The number in the exception messages changes randomly as it is generated by
javafaker
. It seems likejavafaker
does not respect the locale when formatting prices, see: https://github.com/DiUS/java-faker/issues/433.Possible solutions:
javafaker
, like so:Locale.setDefault(Locale.ENGLISH);