FileUtilsTest.testReadWriteTempFile does not run on all platform default
encodings
----------------------------------------------------------------------------------
Key: UIMA-2050
URL: https://issues.apache.org/jira/browse/UIMA-2050
Project: UIMA
Issue Type: Bug
Components: Build, Packaging and Test
Reporter: Jörn Kottmann
Priority: Trivial
In FileUtilTest we have the following piece of code:
FileUtils.saveString2File(text, tmpFile1);
text is a String which contains a German umlaut, depending
on the platform local it might not be possible to encode and decode the
umlaut correctly. In that case the umlaut is encoded as "?" and then decoded
"?", which fails the assertEquals which expects the correct umlaut.
To make the UIMA build independent of the local we have to drop this part of the
test where it writes the file without specifying the local. In the other part
of the test the
file is saved with UTF-8 encoding which is available per Java Specification on
every compliant JVM.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira