bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents() — spring-boot Function Reference
Architecture documentation for the bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD da8f307c_a297_8db5_6320_d1429232bf39["bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] da8f307c_a297_8db5_6320_d1429232bf39 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] da8f307c_a297_8db5_6320_d1429232bf39 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] da8f307c_a297_8db5_6320_d1429232bf39 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"] da8f307c_a297_8db5_6320_d1429232bf39 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6 style da8f307c_a297_8db5_6320_d1429232bf39 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 247–259
@Test
void bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents() {
this.sources.add(new MockConfigurationPropertySource("foo.bar", "1"));
Map<String, Integer> existing = new HashMap<>();
existing.put("bar", 1000);
existing.put("baz", 1001);
Bindable<Map<String, Integer>> target = STRING_INTEGER_MAP.withExistingValue(existing);
Map<String, Integer> result = this.binder.bind("foo", target).get();
assertThat(result).isExactlyInstanceOf(HashMap.class);
assertThat(result).hasSize(2);
assertThat(result).containsEntry("bar", 1);
assertThat(result).containsEntry("baz", 1001);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents() do?
bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents() is a function in the spring-boot codebase.
What does bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents() call?
bindToMapWhenHasExistingMapShouldReplaceOnlyNewContents() 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