diff --git a/spring-shell-core/src/test/java/org/springframework/shell/core/command/HelpTests.java b/spring-shell-core/src/test/java/org/springframework/shell/core/command/HelpTests.java index d5671ef38..c487afb25 100644 --- a/spring-shell-core/src/test/java/org/springframework/shell/core/command/HelpTests.java +++ b/spring-shell-core/src/test/java/org/springframework/shell/core/command/HelpTests.java @@ -49,7 +49,7 @@ void testDefaultHelpMessage() throws Exception { quit, exit: Exit the shell """; - Assertions.assertEquals(expectedOutput, actualOutput); + Assertions.assertEquals(expectedOutput.replaceAll("\\R", "\n"), actualOutput.replaceAll("\\R", "\n")); } @Test @@ -118,7 +118,7 @@ void testHelpMessageForCommand() throws Exception { """; - Assertions.assertEquals(expectedOutput, actualOutput); + Assertions.assertEquals(expectedOutput.replaceAll("\\R", "\n"), actualOutput.replaceAll("\\R", "\n")); } @Test @@ -190,7 +190,7 @@ void testHelpMessageForCommandAlias() throws Exception { hello, hey """; - Assertions.assertEquals(expectedOutput, actualOutput); + Assertions.assertEquals(expectedOutput.replaceAll("\\R", "\n"), actualOutput.replaceAll("\\R", "\n")); } } \ No newline at end of file