Skip to content

Commit

Permalink
Merge pull request #206 from rigd-loxia/main
Browse files Browse the repository at this point in the history
#205: escape '%'-signs for further handling in assertj.
  • Loading branch information
bodewig committed Nov 11, 2020
2 parents 6e1f83d + cfec6b1 commit a1b5ea4
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -385,7 +385,8 @@ private void failComparison(final String type, final String controlSystemId,
difference.getType(), formatXml);

final String msg = String.format(COMPARISON_FAILURE_PATTERN, controlId, testId, type,
description, expected, actual);
description, expected, actual)
.replace("%", "%%"); // any remaining '%' signs should be escaped because assertj tries to format this as well.

failWithActualExpectedAndMessage(expected, actual, msg);
}
Expand Down

0 comments on commit a1b5ea4

Please sign in to comment.