From 07b2b03f3e4f71a5a2947e696ab7dd852b868cb0 Mon Sep 17 00:00:00 2001 From: czpilar Date: Sat, 24 Jan 2026 16:53:29 +0100 Subject: [PATCH] Fix HelpTests to work also on windows Signed-off-by: czpilar --- .../org/springframework/shell/core/command/HelpTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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