bindToMapWhenMapValueIsObjectShouldBindNestedMapValue() — spring-boot Function Reference
Architecture documentation for the bindToMapWhenMapValueIsObjectShouldBindNestedMapValue() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 45d94da9_2e4a_4604_f5f3_eddbec56d841["bindToMapWhenMapValueIsObjectShouldBindNestedMapValue()"] dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 45d94da9_2e4a_4604_f5f3_eddbec56d841 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 45d94da9_2e4a_4604_f5f3_eddbec56d841 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] 45d94da9_2e4a_4604_f5f3_eddbec56d841 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"] 45d94da9_2e4a_4604_f5f3_eddbec56d841 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6 style 45d94da9_2e4a_4604_f5f3_eddbec56d841 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 170–187
@Test
@SuppressWarnings("unchecked")
void bindToMapWhenMapValueIsObjectShouldBindNestedMapValue() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.nested.bar.baz", "1");
source.put("foo.nested.bar.bin", "2");
source.put("foo.nested.far.baz", "3");
source.put("foo.nested.far.bin", "4");
source.put("faf.nested.far.bin", "x");
this.sources.add(source);
Map<String, Object> result = this.binder.bind("foo", Bindable.mapOf(String.class, Object.class)).get();
Map<String, Object> nested = (Map<String, Object>) result.get("nested");
assertThat(nested).hasSize(2);
Map<String, Object> bar = (Map<String, Object>) nested.get("bar");
assertThat(bar).containsEntry("baz", "1").containsEntry("bin", "2");
Map<String, Object> far = (Map<String, Object>) nested.get("far");
assertThat(far).containsEntry("baz", "3").containsEntry("bin", "4");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToMapWhenMapValueIsObjectShouldBindNestedMapValue() do?
bindToMapWhenMapValueIsObjectShouldBindNestedMapValue() is a function in the spring-boot codebase.
What does bindToMapWhenMapValueIsObjectShouldBindNestedMapValue() call?
bindToMapWhenMapValueIsObjectShouldBindNestedMapValue() 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