From 834e562592d56dfa0c83a24d0d03aa9f60a50d01 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Mon, 20 Dec 2021 22:33:33 +0100 Subject: Make test for configuration more platform and settings independent --- .../src/lombok/core/configuration/TestConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/configuration/src/lombok') 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> 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); -- cgit