loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax() — spring-boot Function Reference
Architecture documentation for the loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax() function in ConfigurationPropertiesTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 76017883_d39d_be9f_1d22_51e965f491c5["loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax()"] d7626b8d_946e_609d_ccf0_ffbf47d8df9a["get()"] 76017883_d39d_be9f_1d22_51e965f491c5 -->|calls| d7626b8d_946e_609d_ccf0_ffbf47d8df9a 05d207ba_cdfc_1f3b_359f_89b70a0aec4e["load()"] 76017883_d39d_be9f_1d22_51e965f491c5 -->|calls| 05d207ba_cdfc_1f3b_359f_89b70a0aec4e 7703149d_6d66_defe_a632_8fcaad6dd92f["getAge()"] 76017883_d39d_be9f_1d22_51e965f491c5 -->|calls| 7703149d_6d66_defe_a632_8fcaad6dd92f style 76017883_d39d_be9f_1d22_51e965f491c5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 1122–1134
@Test // gh-18485
void loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax() {
MutablePropertySources sources = this.context.getEnvironment().getPropertySources();
Map<String, Object> source = new HashMap<>();
source.put("test.nested[0]", "spring");
sources.addLast(new MapPropertySource("test", source));
load(MultiConstructorConfigurationPropertiesConfiguration.class);
MultiConstructorConfigurationListProperties bean = this.context
.getBean(MultiConstructorConfigurationListProperties.class);
MultiConstructorConfigurationProperties nested = bean.getNested().get(0);
assertThat(nested.getName()).isEqualTo("spring");
assertThat(nested.getAge()).isZero();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax() do?
loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax() is a function in the spring-boot codebase.
What does loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax() call?
loadWhenBindingToMultiConstructorConfigurationPropertiesUsingShortcutSyntax() calls 3 function(s): get, getAge, load.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free