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

loadWhenUsingSystemPropertiesShouldBindToMap() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4061e1c1_263d_a515_4c69_a3c5ed555ef0["loadWhenUsingSystemPropertiesShouldBindToMap()"]
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  4061e1c1_263d_a515_4c69_a3c5ed555ef0 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  05d207ba_cdfc_1f3b_359f_89b70a0aec4e["load()"]
  4061e1c1_263d_a515_4c69_a3c5ed555ef0 -->|calls| 05d207ba_cdfc_1f3b_359f_89b70a0aec4e
  f5b6f8e4_5ed9_1127_c9a3_ede4cf2d16da["getMap()"]
  4061e1c1_263d_a515_4c69_a3c5ed555ef0 -->|calls| f5b6f8e4_5ed9_1127_c9a3_ede4cf2d16da
  style 4061e1c1_263d_a515_4c69_a3c5ed555ef0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void loadWhenUsingSystemPropertiesShouldBindToMap() {
		this.context.getEnvironment()
			.getPropertySources()
			.addLast(new SystemEnvironmentPropertySource(StandardEnvironment.SYSTEM_ENVIRONMENT_PROPERTY_SOURCE_NAME,
					Collections.singletonMap("TEST_MAP_FOO_BAR", "baz")));
		load(WithComplexMapProperties.class);
		WithComplexMapProperties bean = this.context.getBean(WithComplexMapProperties.class);
		Map<String, Map<String, String>> map = bean.getMap();
		assertThat(map).isNotNull();
		assertThat(map).containsOnlyKeys("foo");
		assertThat(map.get("foo")).containsOnly(entry("bar", "baz"));
	}

Domain

Subdomains

Frequently Asked Questions

What does loadWhenUsingSystemPropertiesShouldBindToMap() do?
loadWhenUsingSystemPropertiesShouldBindToMap() is a function in the spring-boot codebase.
What does loadWhenUsingSystemPropertiesShouldBindToMap() call?
loadWhenUsingSystemPropertiesShouldBindToMap() calls 3 function(s): get, getMap, load.

Analyze Your Own Codebase

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

Try Supermodel Free