mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Relax test to accept files with CRLF line endings (#4126)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user