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

mockArtifact() — spring-boot Function Reference

Architecture documentation for the mockArtifact() function in JarTypeFilterTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  5dfc12a6_7139_7458_e971_7e51fb66135f["mockArtifact()"]
  3eb1e068_895c_1973_21dc_77c59e019c1f["createArtifact()"]
  3eb1e068_895c_1973_21dc_77c59e019c1f -->|calls| 5dfc12a6_7139_7458_e971_7e51fb66135f
  aa940055_f7ac_4ae5_c2a3_65f0a7f13def["createArtifactWithNoManifest()"]
  aa940055_f7ac_4ae5_c2a3_65f0a7f13def -->|calls| 5dfc12a6_7139_7458_e971_7e51fb66135f
  style 5dfc12a6_7139_7458_e971_7e51fb66135f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

build-plugin/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/JarTypeFilterTests.java lines 102–106

	private Artifact mockArtifact(Path jarPath) {
		Artifact artifact = mock(Artifact.class);
		given(artifact.getFile()).willReturn(jarPath.toFile());
		return artifact;
	}

Domain

Subdomains

Frequently Asked Questions

What does mockArtifact() do?
mockArtifact() is a function in the spring-boot codebase.
What calls mockArtifact()?
mockArtifact() is called by 2 function(s): createArtifact, createArtifactWithNoManifest.

Analyze Your Own Codebase

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

Try Supermodel Free