diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-03-31 09:36:08 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-03-31 09:36:08 +0200 |
commit | c2b4b3efe786cd961ce726f9f520278d79867448 (patch) | |
tree | ea3b2a77b04ec529c9480118699fa94317117cd6 /sonar-application/src/test | |
parent | 325651046db95cc9556135a21a6e969d0465221d (diff) | |
download | sonarqube-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.java | 3 |
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"); } |