Skip to content

Commit

Permalink
Issue: junit-team#3139 part 2 update
Browse files Browse the repository at this point in the history
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
  • Loading branch information
XJ114514 committed Sep 1, 2024
1 parent 2fa9a8e commit 50552b4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ private void printSummary(TestExecutionSummary summary, PrintWriter out) {
Arrays.asList(expected.getStringRepresentation()),
Arrays.asList(actual.getStringRepresentation()));

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

Expand Down

0 comments on commit 50552b4

Please sign in to comment.