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

bindToImmutableMapShouldReturnPopulatedMap() — spring-boot Function Reference

Architecture documentation for the bindToImmutableMapShouldReturnPopulatedMap() function in MapBinderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c5c68b5b_abe0_dfe6_f888_c8cb7cddd0ac["bindToImmutableMapShouldReturnPopulatedMap()"]
  dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"]
  c5c68b5b_abe0_dfe6_f888_c8cb7cddd0ac -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e
  7ed947bf_22a1_2781_a2ae_759aa1907445["add()"]
  c5c68b5b_abe0_dfe6_f888_c8cb7cddd0ac -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445
  d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"]
  c5c68b5b_abe0_dfe6_f888_c8cb7cddd0ac -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a
  4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"]
  c5c68b5b_abe0_dfe6_f888_c8cb7cddd0ac -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6
  style c5c68b5b_abe0_dfe6_f888_c8cb7cddd0ac fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java lines 595–606

	@Test
	void bindToImmutableMapShouldReturnPopulatedMap() {
		MockConfigurationPropertySource source = new MockConfigurationPropertySource();
		source.put("foo.values.c", "d");
		source.put("foo.values.e", "f");
		this.sources.add(source);
		Map<String, String> result = this.binder
			.bind("foo.values", STRING_STRING_MAP.withExistingValue(Collections.singletonMap("a", "b")))
			.get();
		assertThat(result).hasSize(3);
		assertThat(result).containsExactly(entry("a", "b"), entry("c", "d"), entry("e", "f"));
	}

Domain

Subdomains

Frequently Asked Questions

What does bindToImmutableMapShouldReturnPopulatedMap() do?
bindToImmutableMapShouldReturnPopulatedMap() is a function in the spring-boot codebase.
What does bindToImmutableMapShouldReturnPopulatedMap() call?
bindToImmutableMapShouldReturnPopulatedMap() calls 4 function(s): MockConfigurationPropertySource, add, get, put.

Analyze Your Own Codebase

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

Try Supermodel Free