You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/01/20 01:48:45 UTC

[maven-surefire] branch junit5-displayname updated: new ByteArrayInputStream( content.getBytes( UTF_8 ) ) in unit test

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch junit5-displayname
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/junit5-displayname by this push:
     new 0430ee0  new ByteArrayInputStream( content.getBytes( UTF_8 ) ) in unit test
0430ee0 is described below

commit 0430ee09334e210b332215a147bcfa82eeda4d82
Author: tibordigana <ti...@apache.org>
AuthorDate: Sun Jan 20 02:48:24 2019 +0100

    new ByteArrayInputStream( content.getBytes( UTF_8 ) ) in unit test
---
 .../plugin/surefire/runorder/RunEntryStatisticsMapTest.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/runorder/RunEntryStatisticsMapTest.java b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/runorder/RunEntryStatisticsMapTest.java
index 42698d7..2970356 100644
--- a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/runorder/RunEntryStatisticsMapTest.java
+++ b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/runorder/RunEntryStatisticsMapTest.java
@@ -19,11 +19,11 @@ package org.apache.maven.plugin.surefire.runorder;
  * under the License.
  */
 
+import java.io.ByteArrayInputStream;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.StringBufferInputStream;
 import java.util.Arrays;
 import java.util.List;
 
@@ -68,10 +68,10 @@ public class RunEntryStatisticsMapTest
 
     private InputStream getStatisticsFile()
     {
-        String content = "0,17,org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMapTest$A,testA\n" +
-            "2,42,org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMapTest$B,testB\n" +
-            "1,100,org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMapTest$C,testC\n";
-        return new StringBufferInputStream( content );
+        String content = "0,17,org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMapTest$A,testA\n"
+                + "2,42,org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMapTest$B,testB\n"
+                + "1,100,org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMapTest$C,testC\n";
+        return new ByteArrayInputStream( content.getBytes( UTF_8 ) );
     }
 
     public void testSerialize()