Skip to content

Commit a09c518

Browse files
committed
Displaying only start of stack trace
1 parent c3d8c35 commit a09c518

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

maven3-junit4-runner/src/main/java/io/tech/runner/junit/TestResultFormatter.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.BufferedOutputStream;
44
import java.io.PrintStream;
5+
import java.nio.charset.StandardCharsets;
56

67
import org.junit.runner.notification.Failure;
78
import org.junit.runner.notification.RunListener;
@@ -35,11 +36,9 @@ public void testFailure(Failure failure) {
3536
}
3637
}
3738

38-
PrintStream ps = new PrintStream(new BufferedOutputStream(System.err));
39-
4039
for (int i = 0, il = stackLines.length; i < il; i++) {
4140
if (i < excludeStart || i > excludeStop) {
42-
ps.print(stackLines[i]);
41+
System.err.println(stackLines[i]);
4342
}
4443
}
4544
}

0 commit comments

Comments
 (0)