Fix formatting for @⁠DisabledInAotMode error messages

See gh-30834
This commit is contained in:
Sam Brannen 2023-10-16 16:10:07 +02:00
parent 1281f03b96
commit 991afe0939
1 changed files with 6 additions and 4 deletions

View File

@ -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()) {