Relax test to accept files with CRLF line endings (#4126)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich 2024-03-03 13:05:16 +01:00 committed by GitHub
parent 81805ae6d9
commit bca1010c0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,7 @@ public class YamlModelRepositoryImplTest {
String actualFileContent = Files.readString(fullModelPath);
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("addToModelExpectedContent.yaml"));
assertThat(actualFileContent, is(expectedFileContent));
assertThat(actualFileContent, is(expectedFileContent.replaceAll("\r\n", "\n")));
}
@Test
@ -221,7 +221,7 @@ public class YamlModelRepositoryImplTest {
String actualFileContent = Files.readString(fullModelPath);
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("updateInModelExpectedContent.yaml"));
assertThat(actualFileContent, is(expectedFileContent));
assertThat(actualFileContent, is(expectedFileContent.replaceAll("\r\n", "\n")));
}
@Test
@ -237,7 +237,7 @@ public class YamlModelRepositoryImplTest {
String actualFileContent = Files.readString(fullModelPath);
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("removeFromModelExpectedContent.yaml"));
assertThat(actualFileContent, is(expectedFileContent));
assertThat(actualFileContent, is(expectedFileContent.replaceAll("\r\n", "\n")));
}
@Test