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

addJUnitPlatformLauncher() — spring-boot Function Reference

Architecture documentation for the addJUnitPlatformLauncher() function in ProcessTestAotMojo.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  b57f92c6_b442_c9cd_7fbf_78c395eb0c7b["addJUnitPlatformLauncher()"]
  c6646c7b_11bd_66b4_cd51_8d9cb75a8d1e["getClassPath()"]
  c6646c7b_11bd_66b4_cd51_8d9cb75a8d1e -->|calls| b57f92c6_b442_c9cd_7fbf_78c395eb0c7b
  652d6bc6_e75a_4a91_6edc_832183cfdd24["getJUnitPlatformVersion()"]
  b57f92c6_b442_c9cd_7fbf_78c395eb0c7b -->|calls| 652d6bc6_e75a_4a91_6edc_832183cfdd24
  e2d6ea4a_62dd_3cd5_8288_ff5f668c58a7["resolveArtifact()"]
  b57f92c6_b442_c9cd_7fbf_78c395eb0c7b -->|calls| e2d6ea4a_62dd_3cd5_8288_ff5f668c58a7
  style b57f92c6_b442_c9cd_7fbf_78c395eb0c7b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ProcessTestAotMojo.java lines 165–176

	private URL[] addJUnitPlatformLauncher(URL[] classPath) throws Exception {
		String version = getJUnitPlatformVersion();
		DefaultArtifactHandler handler = new DefaultArtifactHandler("jar");
		handler.setIncludesDependencies(true);
		Set<Artifact> artifacts = resolveArtifact(new DefaultArtifact(JUNIT_PLATFORM_GROUP_ID,
				JUNIT_PLATFORM_LAUNCHER_ARTIFACT_ID, version, null, "jar", null, handler));
		Set<URL> fullClassPath = new LinkedHashSet<>(Arrays.asList(classPath));
		for (Artifact artifact : artifacts) {
			fullClassPath.add(artifact.getFile().toURI().toURL());
		}
		return fullClassPath.toArray(URL[]::new);
	}

Domain

Subdomains

Calls

  • getJUnitPlatformVersion()
  • resolveArtifact()

Called By

Frequently Asked Questions

What does addJUnitPlatformLauncher() do?
addJUnitPlatformLauncher() is a function in the spring-boot codebase.
What does addJUnitPlatformLauncher() call?
addJUnitPlatformLauncher() calls 2 function(s): getJUnitPlatformVersion, resolveArtifact.
What calls addJUnitPlatformLauncher()?
addJUnitPlatformLauncher() is called by 1 function(s): getClassPath.

Analyze Your Own Codebase

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

Try Supermodel Free