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

analyzeForMissingParametersWhenInSuppressedReturnsFailure() — spring-boot Function Reference

Architecture documentation for the analyzeForMissingParametersWhenInSuppressedReturnsFailure() function in MissingParameterNamesFailureAnalyzerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  38b3f8b1_1b70_5b40_c522_be2fbe0fe87a["analyzeForMissingParametersWhenInSuppressedReturnsFailure()"]
  0a968857_ee4d_2c5f_2ea8_bd6fbad22728["getSpringFrameworkMissingParameterException()"]
  38b3f8b1_1b70_5b40_c522_be2fbe0fe87a -->|calls| 0a968857_ee4d_2c5f_2ea8_bd6fbad22728
  ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"]
  38b3f8b1_1b70_5b40_c522_be2fbe0fe87a -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48
  1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"]
  38b3f8b1_1b70_5b40_c522_be2fbe0fe87a -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1
  style 38b3f8b1_1b70_5b40_c522_be2fbe0fe87a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/diagnostics/analyzer/MissingParameterNamesFailureAnalyzerTests.java lines 73–84

	@Test
	void analyzeForMissingParametersWhenInSuppressedReturnsFailure() throws Exception {
		RuntimeException exception = new RuntimeException("Badness");
		exception.addSuppressed(getSpringFrameworkMissingParameterException());
		FailureAnalysis analysis = MissingParameterNamesFailureAnalyzer.analyzeForMissingParameters(exception);
		assertThat(analysis).isNotNull();
		assertThat(analysis.getDescription())
			.isEqualTo(String.format("Name for argument of type [java.lang.String] not specified, and parameter name "
					+ "information not available via reflection. Ensure that the compiler uses the '-parameters' flag.:%n%n"
					+ "    Resulting Failure: java.lang.RuntimeException: Badness"));
		assertThat(analysis.getAction()).isEqualTo(MissingParameterNamesFailureAnalyzer.ACTION);
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free