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

failureAnalysisForNoMatchName() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7230f10e_cbcd_a9e8_af0a_4e39c38a8f4f["failureAnalysisForNoMatchName()"]
  331d998d_7321_b02d_270f_399881f5897b["analyzeFailure()"]
  7230f10e_cbcd_a9e8_af0a_4e39c38a8f4f -->|calls| 331d998d_7321_b02d_270f_399881f5897b
  62a95671_b8cc_c91b_9b9d_f03915228f99["createFailure()"]
  7230f10e_cbcd_a9e8_af0a_4e39c38a8f4f -->|calls| 62a95671_b8cc_c91b_9b9d_f03915228f99
  ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"]
  7230f10e_cbcd_a9e8_af0a_4e39c38a8f4f -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48
  1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"]
  7230f10e_cbcd_a9e8_af0a_4e39c38a8f4f -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1
  style 7230f10e_cbcd_a9e8_af0a_4e39c38a8f4f 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 131–140

	@Test
	void failureAnalysisForNoMatchName() {
		FailureAnalysis analysis = analyzeFailure(createFailure(StringNameHandler.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"));
		assertThat(analysis.getAction())
			.startsWith(String.format("Consider defining a bean named '%s' in your configuration.", "test-string"));
	}

Domain

Subdomains

Frequently Asked Questions

What does failureAnalysisForNoMatchName() do?
failureAnalysisForNoMatchName() is a function in the spring-boot codebase.
What does failureAnalysisForNoMatchName() call?
failureAnalysisForNoMatchName() calls 4 function(s): analyzeFailure, createFailure, getAction, getDescription.

Analyze Your Own Codebase

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

Try Supermodel Free