aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java')
-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");
}