From c2b4b3efe786cd961ce726f9f520278d79867448 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 31 Mar 2015 09:36:08 +0200 Subject: Remove coupling of test with machine locale --- .../src/test/java/org/sonar/application/PropsBuilderTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sonar-application/src/test/java/org/sonar/application/PropsBuilderTest.java') 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"); } -- cgit v1.2.3