loadWhenBoundToRandomPropertyPlaceholder() — spring-boot Function Reference
Architecture documentation for the loadWhenBoundToRandomPropertyPlaceholder() function in ConfigurationPropertiesTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2e51a475_c4b6_b370_9c98_e79e9d3a9616["loadWhenBoundToRandomPropertyPlaceholder()"] ce1bdd66_936e_84fa_7e6f_ae5858723d25["RandomValuePropertySource()"] 2e51a475_c4b6_b370_9c98_e79e9d3a9616 -->|calls| ce1bdd66_936e_84fa_7e6f_ae5858723d25 05d207ba_cdfc_1f3b_359f_89b70a0aec4e["load()"] 2e51a475_c4b6_b370_9c98_e79e9d3a9616 -->|calls| 05d207ba_cdfc_1f3b_359f_89b70a0aec4e bc8a50cd_ab74_f9b3_5bf0_c467fe131e5e["getBar()"] 2e51a475_c4b6_b370_9c98_e79e9d3a9616 -->|calls| bc8a50cd_ab74_f9b3_5bf0_c467fe131e5e style 2e51a475_c4b6_b370_9c98_e79e9d3a9616 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/ConfigurationPropertiesTests.java lines 1244–1254
@Test // gh-26201
void loadWhenBoundToRandomPropertyPlaceholder() {
MutablePropertySources sources = this.context.getEnvironment().getPropertySources();
sources.addFirst(new RandomValuePropertySource());
Map<String, Object> source = new HashMap<>();
source.put("com.example.bar", "${random.int[100,200]}");
sources.addLast(new MapPropertySource("test", source));
load(SimplePrefixedProperties.class);
SimplePrefixedProperties bean = this.context.getBean(SimplePrefixedProperties.class);
assertThat(bean.getBar()).isNotNull().containsOnlyDigits();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does loadWhenBoundToRandomPropertyPlaceholder() do?
loadWhenBoundToRandomPropertyPlaceholder() is a function in the spring-boot codebase.
What does loadWhenBoundToRandomPropertyPlaceholder() call?
loadWhenBoundToRandomPropertyPlaceholder() calls 3 function(s): RandomValuePropertySource, getBar, load.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free