createMockPropertySource() — spring-boot Function Reference
Architecture documentation for the createMockPropertySource() function in ConfigurationPropertySourcesPropertyResolverTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 4b0cbf95_105c_735c_52db_6d75ba501b16["createMockPropertySource()"] 3a6b6587_7247_a588_1ef7_36ae2e6d1017["standardPropertyResolverResolvesMultipleTimes()"] 3a6b6587_7247_a588_1ef7_36ae2e6d1017 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16 50a29df5_9fd6_6bdd_7422_a3b17fa263a1["configurationPropertySourcesPropertyResolverResolvesSingleTime()"] 50a29df5_9fd6_6bdd_7422_a3b17fa263a1 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16 4e06d171_e489_508f_bfdc_c0b5c77d5a26["containsPropertyWhenValidConfigurationPropertyName()"] 4e06d171_e489_508f_bfdc_c0b5c77d5a26 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16 174199de_6b5f_ef01_1e4b_06d7c42327a2["containsPropertyWhenNotValidConfigurationPropertyName()"] 174199de_6b5f_ef01_1e4b_06d7c42327a2 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16 5adf3627_6875_45dd_7fa4_57e500acd3c4["getPropertyWhenValidConfigurationPropertyName()"] 5adf3627_6875_45dd_7fa4_57e500acd3c4 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16 991f9f4e_2784_ea2e_7b8d_eee13508c2d6["getPropertyWhenNotValidConfigurationPropertyName()"] 991f9f4e_2784_ea2e_7b8d_eee13508c2d6 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16 dc5cf04b_34b8_79ce_0c3c_15dbda7f7b38["getPropertyWhenNotAttached()"] dc5cf04b_34b8_79ce_0c3c_15dbda7f7b38 -->|calls| 4b0cbf95_105c_735c_52db_6d75ba501b16 style 4b0cbf95_105c_735c_52db_6d75ba501b16 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertySourcesPropertyResolverTests.java lines 144–153
private CountingMockPropertySource createMockPropertySource(StandardEnvironment environment, boolean attach) {
CountingMockPropertySource propertySource = new CountingMockPropertySource();
propertySource.withProperty("spring", "boot");
propertySource.withProperty("spr!ng", "boot");
environment.getPropertySources().addFirst(propertySource);
if (attach) {
ConfigurationPropertySources.attach(environment);
}
return propertySource;
}
Domain
Subdomains
Called By
- configurationPropertySourcesPropertyResolverResolvesSingleTime()
- containsPropertyWhenNotValidConfigurationPropertyName()
- containsPropertyWhenValidConfigurationPropertyName()
- getPropertyWhenNotAttached()
- getPropertyWhenNotValidConfigurationPropertyName()
- getPropertyWhenValidConfigurationPropertyName()
- standardPropertyResolverResolvesMultipleTimes()
Source
Frequently Asked Questions
What does createMockPropertySource() do?
createMockPropertySource() is a function in the spring-boot codebase.
What calls createMockPropertySource()?
createMockPropertySource() is called by 7 function(s): configurationPropertySourcesPropertyResolverResolvesSingleTime, containsPropertyWhenNotValidConfigurationPropertyName, containsPropertyWhenValidConfigurationPropertyName, getPropertyWhenNotAttached, getPropertyWhenNotValidConfigurationPropertyName, getPropertyWhenValidConfigurationPropertyName, standardPropertyResolverResolvesMultipleTimes.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free