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

runCommandLineRunnersAndApplicationRunnersWithParentContext() — spring-boot Function Reference

Architecture documentation for the runCommandLineRunnersAndApplicationRunnersWithParentContext() function in SpringApplicationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  ea8960e2_163c_c8bb_5df7_0a247b9b899f["runCommandLineRunnersAndApplicationRunnersWithParentContext()"]
  d661f123_67d2_1aaf_091a_7734c416de34["ParentContextApplicationContextInitializer()"]
  ea8960e2_163c_c8bb_5df7_0a247b9b899f -->|calls| d661f123_67d2_1aaf_091a_7734c416de34
  d6cf7a70_d72d_346d_6173_a7ef8706a5b8["runTestRunnerBean()"]
  ea8960e2_163c_c8bb_5df7_0a247b9b899f -->|calls| d6cf7a70_d72d_346d_6173_a7ef8706a5b8
  3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"]
  ea8960e2_163c_c8bb_5df7_0a247b9b899f -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b
  style ea8960e2_163c_c8bb_5df7_0a247b9b899f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java lines 611–622

	@Test
	void runCommandLineRunnersAndApplicationRunnersWithParentContext() {
		SpringApplication application = new SpringApplication(CommandLineRunConfig.class);
		application.setWebApplicationType(WebApplicationType.NONE);
		application.addInitializers(new ParentContextApplicationContextInitializer(
				new AnnotationConfigApplicationContext(CommandLineRunParentConfig.class)));
		this.context = application.run("arg");
		assertThat(this.context).has(runTestRunnerBean("runnerA"));
		assertThat(this.context).has(runTestRunnerBean("runnerB"));
		assertThat(this.context).has(runTestRunnerBean("runnerC"));
		assertThat(this.context).doesNotHave(runTestRunnerBean("runnerP"));
	}

Domain

Subdomains

Frequently Asked Questions

What does runCommandLineRunnersAndApplicationRunnersWithParentContext() do?
runCommandLineRunnersAndApplicationRunnersWithParentContext() is a function in the spring-boot codebase.
What does runCommandLineRunnersAndApplicationRunnersWithParentContext() call?
runCommandLineRunnersAndApplicationRunnersWithParentContext() calls 3 function(s): ParentContextApplicationContextInitializer, run, runTestRunnerBean.

Analyze Your Own Codebase

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

Try Supermodel Free