Browse Source

Fix formatting for @⁠DisabledInAotMode error messages

See gh-30834
pull/31445/head
Sam Brannen 2 years ago
parent
commit
991afe0939
  1. 10
      spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java

10
spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java

@ -258,13 +258,15 @@ public class TestContextAotGenerator { @@ -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()) {

Loading…
Cancel
Save