Skip to content

Commit

Permalink
xmlunit#205: escape '%'-signs for further handling in assertj.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegveld committed Nov 11, 2020
1 parent 6e1f83d commit cfec6b1
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 cfec6b1

Please sign in to comment.