mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-25 11:45:49 +01: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:
parent
81805ae6d9
commit
bca1010c0e
@ -205,7 +205,7 @@ public class YamlModelRepositoryImplTest {
|
|||||||
String actualFileContent = Files.readString(fullModelPath);
|
String actualFileContent = Files.readString(fullModelPath);
|
||||||
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("addToModelExpectedContent.yaml"));
|
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("addToModelExpectedContent.yaml"));
|
||||||
|
|
||||||
assertThat(actualFileContent, is(expectedFileContent));
|
assertThat(actualFileContent, is(expectedFileContent.replaceAll("\r\n", "\n")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -221,7 +221,7 @@ public class YamlModelRepositoryImplTest {
|
|||||||
String actualFileContent = Files.readString(fullModelPath);
|
String actualFileContent = Files.readString(fullModelPath);
|
||||||
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("updateInModelExpectedContent.yaml"));
|
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("updateInModelExpectedContent.yaml"));
|
||||||
|
|
||||||
assertThat(actualFileContent, is(expectedFileContent));
|
assertThat(actualFileContent, is(expectedFileContent.replaceAll("\r\n", "\n")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -237,7 +237,7 @@ public class YamlModelRepositoryImplTest {
|
|||||||
String actualFileContent = Files.readString(fullModelPath);
|
String actualFileContent = Files.readString(fullModelPath);
|
||||||
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("removeFromModelExpectedContent.yaml"));
|
String expectedFileContent = Files.readString(SOURCE_PATH.resolve("removeFromModelExpectedContent.yaml"));
|
||||||
|
|
||||||
assertThat(actualFileContent, is(expectedFileContent));
|
assertThat(actualFileContent, is(expectedFileContent.replaceAll("\r\n", "\n")));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user