File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/main/java/ru/ewc/checklogic/testing Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,13 @@ private static String checkFailureAsHtml(final List<CheckFailure> failures) {
127
127
}
128
128
129
129
private static String formattedDescriptionFor (final CheckFailure failure ) {
130
- return "<li>Expected: <kbd>%s</kbd>, but got: <kbd>%s</kbd></li>"
131
- .formatted (failure .expectation (), failure .actual ());
130
+ return "<li>Expected: <kbd>%s</kbd>, but got: <kbd>%s</kbd></li>" .formatted (
131
+ CheckFile .clearConstants (failure .expectation ()),
132
+ CheckFile .clearConstants (failure .actual ().split ("=" )[0 ])
133
+ );
134
+ }
135
+
136
+ private static String clearConstants (final String expectation ) {
137
+ return expectation .replaceAll ("constant::" , "" );
132
138
}
133
139
}
You can’t perform that action at this time.
0 commit comments