bindToMapShouldBindNestedMapValue() — spring-boot Function Reference
Architecture documentation for the bindToMapShouldBindNestedMapValue() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD e393cfa5_991d_9b4b_72d4_5044b940b9ed["bindToMapShouldBindNestedMapValue()"] 8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"] e393cfa5_991d_9b4b_72d4_5044b940b9ed -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] e393cfa5_991d_9b4b_72d4_5044b940b9ed -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] e393cfa5_991d_9b4b_72d4_5044b940b9ed -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 76576a77_87f7_3680_8561_2923813db3c1["of()"] e393cfa5_991d_9b4b_72d4_5044b940b9ed -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] e393cfa5_991d_9b4b_72d4_5044b940b9ed -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"] e393cfa5_991d_9b4b_72d4_5044b940b9ed -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6 style e393cfa5_991d_9b4b_72d4_5044b940b9ed 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 149–168
@Test
void bindToMapShouldBindNestedMapValue() {
ResolvableType nestedType = ResolvableType.forClassWithGenerics(Map.class,
ResolvableType.forClass(String.class), STRING_INTEGER_MAP.getType());
ResolvableType type = ResolvableType.forClassWithGenerics(Map.class, ResolvableType.forClass(String.class),
nestedType);
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);
Bindable<Map<String, Map<String, Map<String, Integer>>>> target = Bindable.of(type);
Map<String, Map<String, Map<String, Integer>>> result = this.binder.bind("foo", target).get();
Map<String, Map<String, Integer>> nested = result.get("nested");
assertThat(nested).hasSize(2);
assertThat(nested.get("bar")).containsEntry("baz", 1).containsEntry("bin", 2);
assertThat(nested.get("far")).containsEntry("baz", 3).containsEntry("bin", 4);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToMapShouldBindNestedMapValue() do?
bindToMapShouldBindNestedMapValue() is a function in the spring-boot codebase.
What does bindToMapShouldBindNestedMapValue() call?
bindToMapShouldBindNestedMapValue() calls 6 function(s): MockConfigurationPropertySource, add, get, getType, of, put.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free