aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/test
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-03-31 09:36:08 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-03-31 09:36:08 +0200
commitc2b4b3efe786cd961ce726f9f520278d79867448 (patch)
treeea3b2a77b04ec529c9480118699fa94317117cd6 /sonar-application/src/test
parent325651046db95cc9556135a21a6e969d0465221d (diff)
downloadsonarqube-c2b4b3efe786cd961ce726f9f520278d79867448.tar.gz
sonarqube-c2b4b3efe786cd961ce726f9f520278d79867448.zip
Remove coupling of test with machine locale
Diffstat (limited to 'sonar-application/src/test')
-rw-r--r--sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java b/sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java
index 82c0cd8c99d..4325a704747 100644
--- a/sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java
+++ b/sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java
@@ -19,6 +19,7 @@
*/
package org.sonar.application;
+import org.apache.commons.io.Charsets;
import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Rule;
@@ -126,7 +127,7 @@ public class PropsBuilderTest {
@Test
public void utf8_file_encoding() throws Exception {
- FileUtils.write(new File(homeDir, "conf/sonar.properties"), "utf8prop=Thônes");
+ FileUtils.write(new File(homeDir, "conf/sonar.properties"), "utf8prop=Thônes", Charsets.UTF_8);
Props props = new PropsBuilder(new Properties(), jdbcSettings, homeDir).build();
assertThat(props.value("utf8prop")).isEqualTo("Thônes");
}