diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java index af84fb8f713..dcc16694ea4 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafReactiveAutoConfigurationTests.java @@ -214,7 +214,7 @@ class ThymeleafReactiveAutoConfigurationTests { @Test @WithResource(name = "templates/security-dialect.html", - content = "
\n") + content = "
") void useSecurityDialect() { this.contextRunner.run((context) -> { ISpringWebFluxTemplateEngine engine = context.getBean(ISpringWebFluxTemplateEngine.class); @@ -225,7 +225,7 @@ class ThymeleafReactiveAutoConfigurationTests { WebContext attrs = new WebContext(SpringWebFluxWebApplication.buildApplication(null) .buildExchange(exchange, Locale.US, MediaType.TEXT_HTML, StandardCharsets.UTF_8)); String result = engine.process("security-dialect", attrs); - assertThat(result).isEqualTo("
alice
" + System.lineSeparator()); + assertThat(result).isEqualTo("
alice
"); }); } diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafServletAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafServletAutoConfigurationTests.java index 47c53001190..03fc003dc8b 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafServletAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafServletAutoConfigurationTests.java @@ -239,7 +239,7 @@ class ThymeleafServletAutoConfigurationTests { @Test @WithResource(name = "templates/security-dialect.html", - content = "
\n") + content = "
") void useSecurityDialect() { this.contextRunner.run((context) -> { TemplateEngine engine = context.getBean(TemplateEngine.class); @@ -251,7 +251,7 @@ class ThymeleafServletAutoConfigurationTests { SecurityContextHolder .setContext(new SecurityContextImpl(new TestingAuthenticationToken("alice", "admin"))); String result = engine.process("security-dialect", attrs); - assertThat(result).isEqualTo("
alice
" + System.lineSeparator()); + assertThat(result).isEqualTo("
alice
"); } finally { SecurityContextHolder.clearContext();