runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument() — spring-boot Function Reference
Architecture documentation for the runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument() function in ConfigDataEnvironmentPostProcessorIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0375bcde_da56_22cf_704a_a469f72c9dbf["runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument()"] fe38c8d5_f926_3c8d_1673_0d1e9faf22df["setAdditionalProfiles()"] 0375bcde_da56_22cf_704a_a469f72c9dbf -->|calls| fe38c8d5_f926_3c8d_1673_0d1e9faf22df 61bdfef1_4c77_f177_2d1a_f452f9d7a529["getProperty()"] 0375bcde_da56_22cf_704a_a469f72c9dbf -->|calls| 61bdfef1_4c77_f177_2d1a_f452f9d7a529 f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"] 0375bcde_da56_22cf_704a_a469f72c9dbf -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42 style 0375bcde_da56_22cf_704a_a469f72c9dbf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataEnvironmentPostProcessorIntegrationTests.java lines 500–526
@Test
@WithResource(name = "application.yaml", content = """
---
my:
property: fromyamlfile
other: notempty
---
spring.config.activate.on-profile: dev
my:
property: fromdevprofile
dev:
property: devproperty
---
spring.config.activate.on-profile: other
my:
property: fromotherprofile
""")
void runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument() {
this.application.setAdditionalProfiles("other", "dev");
ConfigurableApplicationContext context = this.application.run();
String property = context.getEnvironment().getProperty("my.property");
assertThat(property).isEqualTo("fromotherprofile");
property = context.getEnvironment().getProperty("my.other");
assertThat(property).isEqualTo("notempty");
property = context.getEnvironment().getProperty("dev.property");
assertThat(property).isEqualTo("devproperty");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument() do?
runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument() is a function in the spring-boot codebase.
What does runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument() call?
runWhenMultipleActiveProfilesWithMultiDocumentFilesLoadsInOrderOfDocument() calls 3 function(s): getProperty, run, setAdditionalProfiles.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free