AotInitializerNotFoundFailureAnalyzerTests Class — spring-boot Architecture
Architecture documentation for the AotInitializerNotFoundFailureAnalyzerTests class in AotInitializerNotFoundFailureAnalyzerTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/AotInitializerNotFoundFailureAnalyzerTests.java lines 32–54
class AotInitializerNotFoundFailureAnalyzerTests {
@Test
void shouldAnalyze() {
FailureAnalysis analysis = analyze();
assertThat(analysis).isNotNull();
assertThat(analysis.getDescription()).isEqualTo(
"Startup with AOT mode enabled failed: AOT initializer class org.springframework.boot.diagnostics.analyzer.AotInitializerNotFoundFailureAnalyzerTests__ApplicationContextInitializer could not be found");
assertThat(analysis.getAction()).isEqualTo(
"""
Consider the following:
\tDid you build the application with enabled AOT processing?
\tIs the main class org.springframework.boot.diagnostics.analyzer.AotInitializerNotFoundFailureAnalyzerTests correct?
\tIf you want to run the application in regular mode, remove the system property 'spring.aot.enabled'""");
}
private @Nullable FailureAnalysis analyze() {
return new AotInitializerNotFoundFailureAnalyzer()
.analyze(new AotInitializerNotFoundException(AotInitializerNotFoundFailureAnalyzerTests.class,
AotInitializerNotFoundFailureAnalyzerTests.class + "__ApplicationContextInitializer"));
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free