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

whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath() — spring-boot Function Reference

Architecture documentation for the whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath() function in TestRunIntegrationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  9bb697c9_bf40_8644_bc68_18032d461cfd["whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath()"]
  530503af_ff0c_ed9e_db17_1fe0c99d32f0["buildLog()"]
  9bb697c9_bf40_8644_bc68_18032d461cfd -->|calls| 530503af_ff0c_ed9e_db17_1fe0c99d32f0
  292234b0_3f45_b797_e6a4_12a3b7709904["canonicalPathOf()"]
  9bb697c9_bf40_8644_bc68_18032d461cfd -->|calls| 292234b0_3f45_b797_e6a4_12a3b7709904
  style 9bb697c9_bf40_8644_bc68_18032d461cfd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/TestRunIntegrationTests.java lines 36–46

	@TestTemplate
	void whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath(MavenBuild mavenBuild) {
		mavenBuild.project("test-run")
			.goals("spring-boot:test-run", "-X")
			.execute((project) -> assertThat(buildLog(project))
				.contains("Main class name = org.test.TestSampleApplication")
				.contains("1. " + canonicalPathOf(project, "target/test-classes"))
				.contains("2. " + canonicalPathOf(project, "target/classes"))
				.containsPattern("3\\. .*spring-core")
				.containsPattern("4\\. .*commons-logging"));
	}

Domain

Subdomains

Calls

  • buildLog()
  • canonicalPathOf()

Frequently Asked Questions

What does whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath() do?
whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath() is a function in the spring-boot codebase.
What does whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath() call?
whenTheTestRunGoalIsExecutedTheApplicationIsRunWithTestAndMainClassesAndTestClasspath() calls 2 function(s): buildLog, canonicalPathOf.

Analyze Your Own Codebase

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

Try Supermodel Free