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

loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind() — spring-boot Function Reference

Architecture documentation for the loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind() function in ConfigurationPropertiesTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f8d56dd8_589a_8b3f_b3e1_0dc1e283396a["loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind()"]
  05d207ba_cdfc_1f3b_359f_89b70a0aec4e["load()"]
  f8d56dd8_589a_8b3f_b3e1_0dc1e283396a -->|calls| 05d207ba_cdfc_1f3b_359f_89b70a0aec4e
  58dafdf3_50c4_e2ce_1c4c_ef80e8fcb739["getPeriod()"]
  f8d56dd8_589a_8b3f_b3e1_0dc1e283396a -->|calls| 58dafdf3_50c4_e2ce_1c4c_ef80e8fcb739
  e4022041_263f_a020_4470_e99f5f35c64f["getDuration()"]
  f8d56dd8_589a_8b3f_b3e1_0dc1e283396a -->|calls| e4022041_263f_a020_4470_e99f5f35c64f
  style f8d56dd8_589a_8b3f_b3e1_0dc1e283396a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 1029–1041

	@Test
	void loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind() {
		MutablePropertySources sources = this.context.getEnvironment().getPropertySources();
		Map<String, Object> source = new HashMap<>();
		source.put("test.duration", "12d");
		source.put("test.period", "13y");
		sources.addLast(new MapPropertySource("test", source));
		load(ConstructorParameterWithFormatConfiguration.class);
		ConstructorParameterWithFormatProperties bean = this.context
			.getBean(ConstructorParameterWithFormatProperties.class);
		assertThat(bean.getDuration()).isEqualTo(Duration.ofDays(12));
		assertThat(bean.getPeriod()).isEqualTo(Period.ofYears(13));
	}

Domain

Subdomains

Frequently Asked Questions

What does loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind() do?
loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind() is a function in the spring-boot codebase.
What does loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind() call?
loadWhenBindingToConstructorParametersWithCustomDataFormatShouldBind() calls 3 function(s): getDuration, getPeriod, load.

Analyze Your Own Codebase

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

Try Supermodel Free