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

whenAMethodOnAClassIsMissingThenNoSuchMethodErrorIsAnalyzed() — spring-boot Function Reference

Architecture documentation for the whenAMethodOnAClassIsMissingThenNoSuchMethodErrorIsAnalyzed() function in NoSuchMethodFailureAnalyzerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  cfd868bd_09cd_c892_5e3b_b0c75e14dcd7["whenAMethodOnAClassIsMissingThenNoSuchMethodErrorIsAnalyzed()"]
  c78d08a5_7358_3a97_ea3a_1407f73bbef2["createFailureForMissingMethod()"]
  cfd868bd_09cd_c892_5e3b_b0c75e14dcd7 -->|calls| c78d08a5_7358_3a97_ea3a_1407f73bbef2
  ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"]
  cfd868bd_09cd_c892_5e3b_b0c75e14dcd7 -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48
  1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"]
  cfd868bd_09cd_c892_5e3b_b0c75e14dcd7 -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1
  style cfd868bd_09cd_c892_5e3b_b0c75e14dcd7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/NoSuchMethodFailureAnalyzerTests.java lines 76–88

	@Test
	void whenAMethodOnAClassIsMissingThenNoSuchMethodErrorIsAnalyzed() {
		Throwable failure = createFailureForMissingMethod();
		FailureAnalysis analysis = new NoSuchMethodFailureAnalyzer().analyze(failure);
		assertThat(analysis).isNotNull();
		assertThat(analysis.getDescription())
			.contains(NoSuchMethodFailureAnalyzerTests.class.getName() + ".createFailureForMissingMethod(")
			.contains("isMoreSpecific(")
			.contains("calling method's class, " + NoSuchMethodFailureAnalyzerTests.class.getName() + ",")
			.contains("called method's class, org.springframework.util.MimeType,");
		assertThat(analysis.getAction()).contains(NoSuchMethodFailureAnalyzerTests.class.getName())
			.contains("org.springframework.util.MimeType");
	}

Domain

Subdomains

Calls

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free