bindToMapWithPlaceholdersShouldResolve() — spring-boot Function Reference
Architecture documentation for the bindToMapWithPlaceholdersShouldResolve() function in MapBinderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f9565e10_213b_4519_3955_286e224ecaa0["bindToMapWithPlaceholdersShouldResolve()"] 7ed947bf_22a1_2781_a2ae_759aa1907445["add()"] f9565e10_213b_4519_3955_286e224ecaa0 -->|calls| 7ed947bf_22a1_2781_a2ae_759aa1907445 dec6e978_683d_a8e4_7ae5_e3e729d3253e["MockConfigurationPropertySource()"] f9565e10_213b_4519_3955_286e224ecaa0 -->|calls| dec6e978_683d_a8e4_7ae5_e3e729d3253e d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] f9565e10_213b_4519_3955_286e224ecaa0 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a style f9565e10_213b_4519_3955_286e224ecaa0 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 632–644
@Test
void bindToMapWithPlaceholdersShouldResolve() {
DefaultConversionService conversionService = new DefaultConversionService();
conversionService.addConverter(new MapConverter());
StandardEnvironment environment = new StandardEnvironment();
Binder binder = new Binder(this.sources, new PropertySourcesPlaceholdersResolver(environment),
conversionService, null, null);
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(environment, "bar=bc");
this.sources.add(new MockConfigurationPropertySource("foo", "a${bar},${bar}d"));
Map<String, String> map = binder.bind("foo", STRING_STRING_MAP).get();
assertThat(map).containsKey("abc");
assertThat(map).containsKey("bcd");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does bindToMapWithPlaceholdersShouldResolve() do?
bindToMapWithPlaceholdersShouldResolve() is a function in the spring-boot codebase.
What does bindToMapWithPlaceholdersShouldResolve() call?
bindToMapWithPlaceholdersShouldResolve() calls 3 function(s): MockConfigurationPropertySource, add, get.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free