Home / Class/ ManifestTests Class — spring-boot Architecture

ManifestTests Class — spring-boot Architecture

Architecture documentation for the ManifestTests class in ManifestTests.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/type/ManifestTests.java lines 30–54

class ManifestTests extends AbstractJsonTests {

	@Test
	void loadJsonFromDistributionManifest() {
		String content = getContentAsString("distribution-manifest.json");
		Manifest manifestList = getManifest(content);
		assertThat(manifestList.getSchemaVersion()).isEqualTo(2);
		assertThat(manifestList.getMediaType()).isEqualTo("application/vnd.docker.distribution.manifest.v2+json");
		assertThat(manifestList.getLayers()).hasSize(1);
	}

	@Test
	void loadJsonFromImageManifest() {
		String content = getContentAsString("image-manifest.json");
		Manifest manifestList = getManifest(content);
		assertThat(manifestList.getSchemaVersion()).isEqualTo(2);
		assertThat(manifestList.getMediaType()).isEqualTo("application/vnd.oci.image.manifest.v1+json");
		assertThat(manifestList.getLayers()).hasSize(1);
	}

	private Manifest getManifest(String content) {
		return new Manifest(getJsonMapper().readTree(content));
	}

}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free