From 991afe0939fa5e9b761a2c5d07e3b2f44f0ce910 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 16 Oct 2023 16:10:07 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20formatting=20for=20@=E2=81=A0DisabledInAo?= =?UTF-8?q?tMode=20error=20messages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See gh-30834 --- .../test/context/aot/TestContextAotGenerator.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java b/spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java index 438b9d7a38d..baab2455e81 100644 --- a/spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java +++ b/spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java @@ -258,13 +258,15 @@ public class TestContextAotGenerator { if (numDisabled != testClasses.size()) { if (this.failOnError) { throw new TestContextAotException(""" - All test classes that share an ApplicationContext must be annotated - with @DisabledInAotMode if one of them is: """ + classNames(testClasses)); + All test classes that share an ApplicationContext must be annotated \ + with @DisabledInAotMode if one of them is: \ + """ + classNames(testClasses)); } else if (logger.isWarnEnabled()) { logger.warn(""" - All test classes that share an ApplicationContext must be annotated - with @DisabledInAotMode if one of them is: """ + classNames(testClasses)); + All test classes that share an ApplicationContext must be annotated \ + with @DisabledInAotMode if one of them is: \ + """ + classNames(testClasses)); } } if (logger.isInfoEnabled()) {