changeset 1234:a60472c69898

Make sure ResultFormatTest writes out the actual files in UTF-8.
author shade
date Tue, 26 May 2015 15:14:29 +0300
parents f535278fe63a
children 6609eea91d87
files jmh-core/src/test/java/org/openjdk/jmh/results/format/ResultFormatTest.java
diffstat 1 files changed, 4 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/test/java/org/openjdk/jmh/results/format/ResultFormatTest.java	Tue May 26 14:54:32 2015 +0300
+++ b/jmh-core/src/test/java/org/openjdk/jmh/results/format/ResultFormatTest.java	Tue May 26 15:14:29 2015 +0300
@@ -29,28 +29,15 @@
 import org.openjdk.jmh.annotations.Mode;
 import org.openjdk.jmh.infra.BenchmarkParams;
 import org.openjdk.jmh.infra.IterationParams;
-import org.openjdk.jmh.results.BenchmarkResult;
-import org.openjdk.jmh.results.IterationResult;
-import org.openjdk.jmh.results.ResultRole;
-import org.openjdk.jmh.results.RunResult;
-import org.openjdk.jmh.results.ThroughputResult;
+import org.openjdk.jmh.results.*;
 import org.openjdk.jmh.runner.IterationType;
 import org.openjdk.jmh.runner.WorkloadParams;
 import org.openjdk.jmh.runner.options.TimeValue;
 import org.openjdk.jmh.util.FileUtils;
 import org.openjdk.jmh.util.Utils;
 
-import java.io.BufferedReader;
-import java.io.FileReader;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.io.PrintStream;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Locale;
-import java.util.Random;
-import java.util.TreeSet;
+import java.io.*;
+import java.util.*;
 import java.util.concurrent.TimeUnit;
 
 /**
@@ -127,7 +114,7 @@
             ResultFormatFactory.getInstance(type, actualFile).writeOut(getStub());
             compare(actualFile, goldenFileName);
 
-            PrintStream ps = new PrintStream(actualFile);
+            PrintStream ps = new PrintStream(actualFile, "UTF-8");
             ResultFormatFactory.getInstance(type, ps).writeOut(getStub());
             ps.close();