bindToMapShouldBindToMapValue() — spring-boot Function Reference
Architecture documentation for the bindToMapShouldBindToMapValue() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 354a6741_b226_cc48_b5cf_919d0968b061["bindToMapShouldBindToMapValue()"] 8d8ef66e_fc29_736c_c815_846df9fa8305["getType()"] 354a6741_b226_cc48_b5cf_919d0968b061 -->|calls| 8d8ef66e_fc29_736c_c815_846df9fa8305 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] 354a6741_b226_cc48_b5cf_919d0968b061 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] 354a6741_b226_cc48_b5cf_919d0968b061 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 76576a77_87f7_3680_8561_2923813db3c1["of()"] 354a6741_b226_cc48_b5cf_919d0968b061 -->|calls| 76576a77_87f7_3680_8561_2923813db3c1 d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] 354a6741_b226_cc48_b5cf_919d0968b061 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 4fef258c_a2a4_d498_7bd8_31a7595265f6["put()"] 354a6741_b226_cc48_b5cf_919d0968b061 -->|calls| 4fef258c_a2a4_d498_7bd8_31a7595265f6 style 354a6741_b226_cc48_b5cf_919d0968b061 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 130–147
@Test
void bindToMapShouldBindToMapValue() {
ResolvableType type = ResolvableType.forClassWithGenerics(Map.class, ResolvableType.forClass(String.class),
STRING_INTEGER_MAP.getType());
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.bar.baz", "1");
source.put("foo.bar.bin", "2");
source.put("foo.far.baz", "3");
source.put("foo.far.bin", "4");
source.put("faf.far.bin", "x");
this.sources.add(source);
Map<String, Map<String, Integer>> result = this.binder
.bind("foo", Bindable.<Map<String, Map<String, Integer>>>of(type))
.get();
assertThat(result).hasSize(2);
assertThat(result.get("bar")).containsEntry("baz", 1).containsEntry("bin", 2);
assertThat(result.get("far")).containsEntry("baz", 3).containsEntry("bin", 4);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToMapShouldBindToMapValue() do?
bindToMapShouldBindToMapValue() is a function in the spring-boot codebase.
What does bindToMapShouldBindToMapValue() call?
bindToMapShouldBindToMapValue() 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