Clone
Zoran Regvart
committed
on 10 May 17
CAMEL-10141: make org.apache.camel.converter.IO...
...ConverterCharsetTest tests pass on Java 9

Fixes unit test by explicitly setting the e… Show more
CAMEL-10141: make org.apache.camel.converter.IO...

...ConverterCharsetTest tests pass on Java 9

Fixes unit test by explicitly setting the encoding when reading the

expected result text file and thus does not rely on the default platform

encoding.

Also cleaned up the test a bit by using try-with-resources.

Of note: testing encoding issues on Linux with `LANG` environment

variable including `.utf8` (e.g. `en_US.utf8`) leads to UTF-8 being

default platform charset.

Show less

master + 12 more