bindToMapShouldNotTreatClassWithStringConstructorAsScalar() — spring-boot Function Reference
Architecture documentation for the bindToMapShouldNotTreatClassWithStringConstructorAsScalar() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD cac49159_424c_0185_52da_75a43305cc86["bindToMapShouldNotTreatClassWithStringConstructorAsScalar()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] cac49159_424c_0185_52da_75a43305cc86 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] cac49159_424c_0185_52da_75a43305cc86 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] cac49159_424c_0185_52da_75a43305cc86 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a dc84035e_3d5d_e998_f8ca_eb2d8e28fdf7["getPattern()"] cac49159_424c_0185_52da_75a43305cc86 -->|calls| dc84035e_3d5d_e998_f8ca_eb2d8e28fdf7 style cac49159_424c_0185_52da_75a43305cc86 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 388–396
@Test
void bindToMapShouldNotTreatClassWithStringConstructorAsScalar() {
this.sources.add(new MockConfigurationPropertySource("foo.bar.pattern", "1", "line1"));
Bindable<Map<String, Foo>> target = Bindable.mapOf(String.class, Foo.class);
Map<String, Foo> map = this.binder.bind("foo", target).get();
Foo bar = map.get("bar");
assertThat(bar).isNotNull();
assertThat(bar.getPattern()).isEqualTo("1");
}
Domain
Subdomains
Calls
- MockConfigurationPropertySource()
- add()
- get()
- getPattern()
Source
Frequently Asked Questions
What does bindToMapShouldNotTreatClassWithStringConstructorAsScalar() do?
bindToMapShouldNotTreatClassWithStringConstructorAsScalar() is a function in the spring-boot codebase.
What does bindToMapShouldNotTreatClassWithStringConstructorAsScalar() call?
bindToMapShouldNotTreatClassWithStringConstructorAsScalar() calls 4 function(s): MockConfigurationPropertySource, add, get, getPattern.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free