Home / Function/ shouldAnalyze() — spring-boot Function Reference

shouldAnalyze() — spring-boot Function Reference

Architecture documentation for the shouldAnalyze() function in AotInitializerNotFoundFailureAnalyzerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  d51f0f78_b05a_60a2_4101_2618e1711e6b["shouldAnalyze()"]
  37428740_43a8_9573_af53_cea30ded937e["analyze()"]
  d51f0f78_b05a_60a2_4101_2618e1711e6b -->|calls| 37428740_43a8_9573_af53_cea30ded937e
  ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"]
  d51f0f78_b05a_60a2_4101_2618e1711e6b -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48
  1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"]
  d51f0f78_b05a_60a2_4101_2618e1711e6b -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1
  style d51f0f78_b05a_60a2_4101_2618e1711e6b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/AotInitializerNotFoundFailureAnalyzerTests.java lines 34–46

	@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'""");
	}

Domain

Subdomains

Frequently Asked Questions

What does shouldAnalyze() do?
shouldAnalyze() is a function in the spring-boot codebase.
What does shouldAnalyze() call?
shouldAnalyze() calls 3 function(s): analyze, getAction, getDescription.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free