runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties() — spring-boot Function Reference
Architecture documentation for the runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties() function in ConfigDataEnvironmentPostProcessorIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 91d28515_780a_de48_84d3_2dd2a054f9b0["runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties()"] 0307cf8d_fc8f_0c1f_27ae_adc000d77a4c["setDefaultProperties()"] 91d28515_780a_de48_84d3_2dd2a054f9b0 -->|calls| 0307cf8d_fc8f_0c1f_27ae_adc000d77a4c 61bdfef1_4c77_f177_2d1a_f452f9d7a529["getProperty()"] 91d28515_780a_de48_84d3_2dd2a054f9b0 -->|calls| 61bdfef1_4c77_f177_2d1a_f452f9d7a529 f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] 91d28515_780a_de48_84d3_2dd2a054f9b0 -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style 91d28515_780a_de48_84d3_2dd2a054f9b0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java lines 386–393
@Test
@WithResource(name = "testproperties.properties", content = "the.property=frompropertiesfile")
void runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties() {
this.application.setDefaultProperties(Collections.singletonMap("spring.config.name", "testproperties"));
ConfigurableApplicationContext context = this.application.run();
String property = context.getEnvironment().getProperty("the.property");
assertThat(property).isEqualTo("frompropertiesfile");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties() do?
runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties() is a function in the spring-boot codebase.
What does runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties() call?
runWhenHasDefaultPropertiesWithConfigNameLoadsExpectedProperties() calls 3 function(s): getProperty, run, setDefaultProperties.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free