Skip to content

Commit 50552b4

Browse files
committed
Issue: junit-team#3139 part 2 update
Fixed different profile issue. Tasks completed: 1. Locate ConsoleLauncher output 2. Check if actual and expected of AssertionFailedError are both type of CharSequence 3. Add diff function dependency 4. Using diff to generate the output desired ToDo: 1.Automatic test case for diff output Issue: junit-team#3139
1 parent 2fa9a8e commit 50552b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

junit-platform-console/src/main/java/org/junit/platform/console/tasks/ConsoleTestExecutor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ private void printSummary(TestExecutionSummary summary, PrintWriter out) {
201201
Arrays.asList(expected.getStringRepresentation()),
202202
Arrays.asList(actual.getStringRepresentation()));
203203

204-
System.out.println(
205-
"\nPlease put the diff result below into a onli../ne markdown editor to see markdown effect: ");
204+
out.printf(
205+
"\nPlease put the diff result below into a online markdown editor to see markdown effect: \n");
206206
for (DiffRow row : rows) {
207-
System.out.println(" | " + row.getOldLine() + " | " + row.getNewLine() + " | ");
207+
out.printf(" | %s | %s | \n",row.getOldLine(),row.getNewLine());
208208
}
209209
}
210210

0 commit comments

Comments
 (0)