parentFirstCreationWithProfileAndDefaultArgs() — spring-boot Function Reference
Architecture documentation for the parentFirstCreationWithProfileAndDefaultArgs() function in SpringApplicationBuilderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 30737f1d_7b54_4af9_68b7_9e42d0e43f84["parentFirstCreationWithProfileAndDefaultArgs()"] 3dc59be6_081a_34fd_0727_a7b4669b8750["assertThat()"] 30737f1d_7b54_4af9_68b7_9e42d0e43f84 -->|calls| 3dc59be6_081a_34fd_0727_a7b4669b8750 546343f2_f93a_0dc3_7a91_7016e75078f5["getParent()"] 30737f1d_7b54_4af9_68b7_9e42d0e43f84 -->|calls| 546343f2_f93a_0dc3_7a91_7016e75078f5 89cfa04a_3922_680e_945d_5b4338252cc7["run()"] 30737f1d_7b54_4af9_68b7_9e42d0e43f84 -->|calls| 89cfa04a_3922_680e_945d_5b4338252cc7 style 30737f1d_7b54_4af9_68b7_9e42d0e43f84 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/builder/SpringApplicationBuilderTests.java lines 214–230
@Test
@WithResource(name = "application-node.properties", content = "bar=spam")
void parentFirstCreationWithProfileAndDefaultArgs() {
SpringApplicationBuilder application = new SpringApplicationBuilder(ExampleConfig.class).profiles("node")
.properties("transport=redis")
.child(ChildConfig.class)
.web(WebApplicationType.NONE);
this.context = application.run();
assertThat(this.context.getEnvironment().acceptsProfiles(Profiles.of("node"))).isTrue();
assertThat(this.context.getEnvironment().getProperty("transport")).isEqualTo("redis");
ApplicationContext parent = this.context.getParent();
assertThat(parent).isNotNull();
assertThat(parent.getEnvironment().acceptsProfiles(Profiles.of("node"))).isTrue();
assertThat(parent.getEnvironment().getProperty("transport")).isEqualTo("redis");
// only defined in node profile
assertThat(this.context.getEnvironment().getProperty("bar")).isEqualTo("spam");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does parentFirstCreationWithProfileAndDefaultArgs() do?
parentFirstCreationWithProfileAndDefaultArgs() is a function in the spring-boot codebase.
What does parentFirstCreationWithProfileAndDefaultArgs() call?
parentFirstCreationWithProfileAndDefaultArgs() calls 3 function(s): assertThat, getParent, run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free