Skip to content

Commit 3e0eb7d

Browse files
committed
Merge branch '3.5.x'
2 parents 73087f3 + c7c0958 commit 3e0eb7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

buildSrc/src/test/java/org/springframework/boot/build/context/properties/ConfigurationPropertiesAnalyzerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void writeReportWithNoProblemsFound(@TempDir File tempDir) throws IOException {
127127
report.registerAnalysis(first, new Analysis("Check for things:"));
128128
File second = new File(tempDir, "metadata-2.json");
129129
report.registerAnalysis(second, new Analysis("Check for other things:"));
130-
assertThat(writeToFile(tempDir, report)).content().isEqualTo("""
130+
assertThat(writeToFile(tempDir, report)).content().isEqualToIgnoringNewLines("""
131131
metadata-1.json
132132
No problems found.
133133
@@ -144,7 +144,7 @@ void writeReportWithOneProblem(@TempDir File tempDir) throws IOException {
144144
analysis.addItem("Should not be deprecated");
145145
report.registerAnalysis(metadata, analysis);
146146
report.registerAnalysis(metadata, new Analysis("Check for other things:"));
147-
assertThat(writeToFile(tempDir, report)).content().isEqualTo("""
147+
assertThat(writeToFile(tempDir, report)).content().isEqualToIgnoringNewLines("""
148148
metadata-1.json
149149
Check for things:
150150
- Should not be deprecated
@@ -165,7 +165,7 @@ void writeReportWithSeveralProblems(@TempDir File tempDir) throws IOException {
165165
Analysis secondAnalysis = new Analysis("Check for other things:");
166166
secondAnalysis.addItem("Field 'this' not expected");
167167
report.registerAnalysis(metadata, secondAnalysis);
168-
assertThat(writeToFile(tempDir, report)).content().isEqualTo("""
168+
assertThat(writeToFile(tempDir, report)).content().isEqualToIgnoringNewLines("""
169169
metadata-1.json
170170
Check for things:
171171
- Should not be deprecated

0 commit comments

Comments
 (0)