Browse Source

Consistently throw TestContextAotException in TestContextAotGenerator

See gh-30898
pull/30915/head
Sam Brannen 2 years ago
parent
commit
9e3f3bee71
  1. 2
      spring-test/src/main/java/org/springframework/test/context/aot/TestContextAotGenerator.java

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

@ -227,7 +227,7 @@ public class TestContextAotGenerator { @@ -227,7 +227,7 @@ public class TestContextAotGenerator {
}
catch (Exception ex) {
if (this.failOnError) {
throw new IllegalStateException("Failed to generate AOT artifacts for test classes " +
throw new TestContextAotException("Failed to generate AOT artifacts for test classes " +
testClasses.stream().map(Class::getName).toList(), ex);
}
if (logger.isDebugEnabled()) {

Loading…
Cancel
Save