diff options
author | Roel Spilker <r.spilker@topdesk.com> | 2021-12-20 22:33:33 +0100 |
---|---|---|
committer | Roel Spilker <r.spilker@topdesk.com> | 2021-12-20 22:34:11 +0100 |
commit | 834e562592d56dfa0c83a24d0d03aa9f60a50d01 (patch) | |
tree | 3da24583fe0228e160687c0ec018b8a56e2eaa98 /test/configuration/src | |
parent | 3d43feb2c02682ea2a114a260582248fb67382f4 (diff) | |
download | lombok-834e562592d56dfa0c83a24d0d03aa9f60a50d01.tar.gz lombok-834e562592d56dfa0c83a24d0d03aa9f60a50d01.tar.bz2 lombok-834e562592d56dfa0c83a24d0d03aa9f60a50d01.zip |
Make test for configuration more platform and settings independent
Diffstat (limited to 'test/configuration/src')
-rw-r--r-- | test/configuration/src/lombok/core/configuration/TestConfiguration.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/configuration/src/lombok/core/configuration/TestConfiguration.java b/test/configuration/src/lombok/core/configuration/TestConfiguration.java index 41f22028..d2ceb5fc 100644 --- a/test/configuration/src/lombok/core/configuration/TestConfiguration.java +++ b/test/configuration/src/lombok/core/configuration/TestConfiguration.java @@ -39,7 +39,7 @@ public class TestConfiguration { @Test public void testDisplayVerbose() throws Exception { - @SuppressWarnings(value = {"unchecked", "deprecation"}) + @SuppressWarnings(value = {"all", "unchecked", "deprecation"}) Collection<ConfigurationKey<?>> keys = Arrays.asList(ACCESSORS_FLAG_USAGE, ACCESSORS_CHAIN, ACCESSORS_PREFIX, ADD_GENERATED_ANNOTATIONS, ADD_JAVAX_GENERATED_ANNOTATIONS, ANY_CONSTRUCTOR_ADD_CONSTRUCTOR_PROPERTIES, LOG_ANY_FIELD_NAME, COPYABLE_ANNOTATIONS); String baseName = "test/configuration/resource/configurationRoot/"; @@ -74,7 +74,7 @@ public class TestConfiguration { } private void checkContent(File dir, String actual, String type) throws Exception { - String expected = fileToString(new File(dir, type + ".txt")).trim(); + String expected = fileToString(new File(dir, type + ".txt")).replace("\r", "").trim(); if (!expected.equals(actual)) { System.out.printf("**** Expected %s:\n", type); System.out.println(expected); |