Issue #1394 - fix default character encoding for surefire testing

This commit is contained in:
Joakim Erdfelt 2017-03-13 11:10:10 -07:00
parent 95feaa6198
commit f293f637c8
2 changed files with 3 additions and 2 deletions

View File

@ -93,7 +93,8 @@ public class HttpClientURITest extends AbstractHttpClientServerTest
public void testIDNRedirect() throws Exception
{
// Internationalized Domain Name.
String exampleHost = scheme + "://пример.рф";
// String exampleHost = scheme + "://пример.рф";
String exampleHost = scheme + "://\uD0BF\uD180\uD0B8\uD0BC\uD0B5\uD180.\uD180\uD184";
String incorrectlyDecoded = new String(exampleHost.getBytes(StandardCharsets.UTF_8), StandardCharsets.ISO_8859_1);
// Simple server that only parses clear-text HTTP/1.1.

View File

@ -465,7 +465,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<argLine>@{argLine} -showversion -Xmx1g -Xms1g -XX:+PrintGCDetails</argLine>
<argLine>@{argLine} -Dfile.encoding=UTF-8 -showversion -Xmx1g -Xms1g -XX:+PrintGCDetails</argLine>
<failIfNoTests>false</failIfNoTests>
<forkCount>1</forkCount>
<systemProperties>