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

failureAnalysisForMissingBeanName() — spring-boot Function Reference

Architecture documentation for the failureAnalysisForMissingBeanName() function in NoSuchBeanDefinitionFailureAnalyzerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  1f6db270_a286_d381_d98d_ef8009a8eec9["failureAnalysisForMissingBeanName()"]
  331d998d_7321_b02d_270f_399881f5897b["analyzeFailure()"]
  1f6db270_a286_d381_d98d_ef8009a8eec9 -->|calls| 331d998d_7321_b02d_270f_399881f5897b
  62a95671_b8cc_c91b_9b9d_f03915228f99["createFailure()"]
  1f6db270_a286_d381_d98d_ef8009a8eec9 -->|calls| 62a95671_b8cc_c91b_9b9d_f03915228f99
  ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"]
  1f6db270_a286_d381_d98d_ef8009a8eec9 -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48
  9dedf92a_88f4_ae7a_a689_6121d664db41["assertBeanMethodDisabled()"]
  1f6db270_a286_d381_d98d_ef8009a8eec9 -->|calls| 9dedf92a_88f4_ae7a_a689_6121d664db41
  b79caa32_31fd_55f2_84b0_a14b7bc550d0["assertActionMissingName()"]
  1f6db270_a286_d381_d98d_ef8009a8eec9 -->|calls| b79caa32_31fd_55f2_84b0_a14b7bc550d0
  style 1f6db270_a286_d381_d98d_ef8009a8eec9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/diagnostics/analyzer/NoSuchBeanDefinitionFailureAnalyzerTests.java lines 142–153

	@Test
	void failureAnalysisForMissingBeanName() {
		FailureAnalysis analysis = analyzeFailure(createFailure(StringMissingBeanNameConfiguration.class));
		assertThat(analysis).isNotNull();
		assertThat(analysis.getDescription())
			.startsWith(String.format("Constructor in %s required a bean named '%s' that could not be found",
					StringNameHandler.class.getName(), "test-string"));
		assertBeanMethodDisabled(analysis,
				"@ConditionalOnBean (types: java.lang.Integer; SearchStrategy: all) did not find any beans",
				TestMissingBeanAutoConfiguration.class, "string");
		assertActionMissingName(analysis, "test-string");
	}

Domain

Subdomains

Frequently Asked Questions

What does failureAnalysisForMissingBeanName() do?
failureAnalysisForMissingBeanName() is a function in the spring-boot codebase.
What does failureAnalysisForMissingBeanName() call?
failureAnalysisForMissingBeanName() calls 5 function(s): analyzeFailure, assertActionMissingName, assertBeanMethodDisabled, createFailure, getDescription.

Analyze Your Own Codebase

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

Try Supermodel Free