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

writeTestZip() — spring-boot Function Reference

Architecture documentation for the writeTestZip() function in ZipFileTarArchiveTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  380a9171_4a40_f29c_99a8_5f3a036b5321["writeTestZip()"]
  13758421_19d7_480e_f1b0_2f87d1cbce53["createWhenOwnerIsNullThrowsException()"]
  13758421_19d7_480e_f1b0_2f87d1cbce53 -->|calls| 380a9171_4a40_f29c_99a8_5f3a036b5321
  ef96e0d6_9f7f_62b7_769b_8e2035b930cc["writeToAdaptsContent()"]
  ef96e0d6_9f7f_62b7_769b_8e2035b930cc -->|calls| 380a9171_4a40_f29c_99a8_5f3a036b5321
  style 380a9171_4a40_f29c_99a8_5f3a036b5321 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/io/ZipFileTarArchiveTests.java lines 87–98

	private void writeTestZip(File file) throws IOException {
		try (ZipArchiveOutputStream zip = new ZipArchiveOutputStream(file)) {
			ZipArchiveEntry dirEntry = new ZipArchiveEntry("spring/");
			zip.putArchiveEntry(dirEntry);
			zip.closeArchiveEntry();
			ZipArchiveEntry fileEntry = new ZipArchiveEntry("spring/boot");
			fileEntry.setUnixMode(0755);
			zip.putArchiveEntry(fileEntry);
			zip.write("test".getBytes(StandardCharsets.UTF_8));
			zip.closeArchiveEntry();
		}
	}

Domain

Subdomains

Called By

  • createWhenOwnerIsNullThrowsException()
  • writeToAdaptsContent()

Frequently Asked Questions

What does writeTestZip() do?
writeTestZip() is a function in the spring-boot codebase.
What calls writeTestZip()?
writeTestZip() is called by 2 function(s): createWhenOwnerIsNullThrowsException, writeToAdaptsContent.

Analyze Your Own Codebase

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

Try Supermodel Free