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

failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound() — spring-boot Function Reference

Architecture documentation for the failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound() function in NotConstructorBoundInjectionFailureAnalyzerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  33046d69_e291_91e2_0e0a_5439ebd7bbbe["failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound()"]
  7e214dcb_0966_480e_5763_5224ff156be3["analyzeFailure()"]
  33046d69_e291_91e2_0e0a_5439ebd7bbbe -->|calls| 7e214dcb_0966_480e_5763_5224ff156be3
  9b2e3040_d6c8_793c_b22e_fa05af069f04["createFailure()"]
  33046d69_e291_91e2_0e0a_5439ebd7bbbe -->|calls| 9b2e3040_d6c8_793c_b22e_fa05af069f04
  ebc7cdd4_21bc_3491_686c_090da262ca48["getDescription()"]
  33046d69_e291_91e2_0e0a_5439ebd7bbbe -->|calls| ebc7cdd4_21bc_3491_686c_090da262ca48
  1a4e5320_a2e2_8aa5_7d05_1e805db190f1["getAction()"]
  33046d69_e291_91e2_0e0a_5439ebd7bbbe -->|calls| 1a4e5320_a2e2_8aa5_7d05_1e805db190f1
  style 33046d69_e291_91e2_0e0a_5439ebd7bbbe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/NotConstructorBoundInjectionFailureAnalyzerTests.java lines 42–54

	@Test
	void failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound() {
		FailureAnalysis analysis = analyzeFailure(
				createFailure(ShouldHaveUsedConstructorBindingPropertiesConfiguration.class));
		assertThat(analysis).isNotNull();
		assertThat(analysis.getDescription()).isEqualTo(ConstructorBoundProperties.class.getSimpleName()
				+ " is annotated with @" + ConstructorBinding.class.getSimpleName()
				+ " but it is defined as a regular bean which caused dependency injection to fail.");
		assertThat(analysis.getAction())
			.isEqualTo("Update your configuration so that " + ConstructorBoundProperties.class.getSimpleName()
					+ " is defined via @" + ConfigurationPropertiesScan.class.getSimpleName() + " or @"
					+ EnableConfigurationProperties.class.getSimpleName() + ".");
	}

Domain

Subdomains

Frequently Asked Questions

What does failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound() do?
failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound() is a function in the spring-boot codebase.
What does failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound() call?
failureAnalysisForConfigurationPropertiesThatShouldHaveBeenConstructorBound() 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