The test testContentLoggingLimitWithLoggingEnabledAndDisabled fails due to using a fixed decimal separator character (','), whereas the LoggingByteArrayOutputStream uses NumberFormat to format the output according to given locale.
These are the two methods, that make the test fail. ('18,000' needs be adapted)
subtestContentLoggingLimit(big, Integer.MAX_VALUE, true, "Total: 18,000 bytes", big);
subtestContentLoggingLimit(big, 4, true, "Total: 18,000 bytes (logging first 4 bytes)", "xxxx");
The test
testContentLoggingLimitWithLoggingEnabledAndDisabledfails due to using a fixed decimal separator character (','), whereas theLoggingByteArrayOutputStreamusesNumberFormatto format the output according to given locale.These are the two methods, that make the test fail. ('18,000' needs be adapted)