Home / Function/ parentFirstCreation() — spring-boot Function Reference

parentFirstCreation() — spring-boot Function Reference

Architecture documentation for the parentFirstCreation() function in SpringApplicationBuilderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  3146d574_ee92_e556_38a5_7370f00a98e7["parentFirstCreation()"]
  97fa5b9e_b816_70bd_8828_99b67bc8530a["getApplicationContext()"]
  3146d574_ee92_e556_38a5_7370f00a98e7 -->|calls| 97fa5b9e_b816_70bd_8828_99b67bc8530a
  6e5afbf2_5ca2_d18c_1a56_76eb4b8b8221["setParent()"]
  3146d574_ee92_e556_38a5_7370f00a98e7 -->|calls| 6e5afbf2_5ca2_d18c_1a56_76eb4b8b8221
  3dc59be6_081a_34fd_0727_a7b4669b8750["assertThat()"]
  3146d574_ee92_e556_38a5_7370f00a98e7 -->|calls| 3dc59be6_081a_34fd_0727_a7b4669b8750
  a443e5ce_8b4c_f3b3_fc8c_67bbd9a1b6a3["get()"]
  3146d574_ee92_e556_38a5_7370f00a98e7 -->|calls| a443e5ce_8b4c_f3b3_fc8c_67bbd9a1b6a3
  ecafb7a5_4f8e_30f0_a1fa_c6d3b6fdc536["didNotRegisterApplicationContext()"]
  3146d574_ee92_e556_38a5_7370f00a98e7 -->|calls| ecafb7a5_4f8e_30f0_a1fa_c6d3b6fdc536
  89cfa04a_3922_680e_945d_5b4338252cc7["run()"]
  3146d574_ee92_e556_38a5_7370f00a98e7 -->|calls| 89cfa04a_3922_680e_945d_5b4338252cc7
  style 3146d574_ee92_e556_38a5_7370f00a98e7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/builder/SpringApplicationBuilderTests.java lines 203–212

	@Test
	void parentFirstCreation() {
		SpringApplicationBuilder application = new SpringApplicationBuilder(ExampleConfig.class)
			.child(ChildConfig.class);
		application.contextFactory(ApplicationContextFactory.ofContextClass(SpyApplicationContext.class));
		this.context = application.run();
		then(((SpyApplicationContext) this.context).getApplicationContext()).should()
			.setParent(any(ApplicationContext.class));
		assertThat(SpringApplicationShutdownHookInstance.get()).didNotRegisterApplicationContext(this.context);
	}

Domain

Subdomains

Frequently Asked Questions

What does parentFirstCreation() do?
parentFirstCreation() is a function in the spring-boot codebase.
What does parentFirstCreation() call?
parentFirstCreation() calls 6 function(s): assertThat, didNotRegisterApplicationContext, get, getApplicationContext, run, setParent.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free