Fix Sarif `message` that now can contain new lines.
@@ -23,17 +23,17 @@ class SarifAdapterTest extends AbstractParserTest {
protected void assertThatIssuesArePresent(final Report report, final SoftAssertions softly) {
softly.assertThat(report).hasSize(2);
softly.assertThat(report.get(0))
- .hasMessage("asdasd asdasd")
.hasFileName("/whatever/path.c")
.hasLineStart(123)
.hasType("Cyclomatic complexity")
.hasSeverity(Severity.WARNING_HIGH);
+ softly.assertThat(report.get(0).getMessage()).matches("asdasd\\s*asdasd");
softly.assertThat(report.get(1))
- .hasMessage("asdasd asdasd")
.hasFileName("/whatever/path.c")
.hasLineStart(123)
.hasType("-")
.hasSeverity(Severity.WARNING_LOW);
+ softly.assertThat(report.get(1).getMessage()).matches("asdasd\\s*asdasd");
}
@Test
