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

createWithPlatformAndKnownInsufficientApiVersionThrowsException() — spring-boot Function Reference

Architecture documentation for the createWithPlatformAndKnownInsufficientApiVersionThrowsException() function in DockerApiTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  0804a507_bc2c_3637_ef4b_6304c5edba46["createWithPlatformAndKnownInsufficientApiVersionThrowsException()"]
  274a52b3_b07b_ef2a_172f_1c8b25267451["withCommand()"]
  0804a507_bc2c_3637_ef4b_6304c5edba46 -->|calls| 274a52b3_b07b_ef2a_172f_1c8b25267451
  c8868b7f_8c53_fa0f_029b_adb439a84967["setVersion()"]
  0804a507_bc2c_3637_ef4b_6304c5edba46 -->|calls| c8868b7f_8c53_fa0f_029b_adb439a84967
  style 0804a507_bc2c_3637_ef4b_6304c5edba46 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerApiTests.java lines 731–740

		@Test
		void createWithPlatformAndKnownInsufficientApiVersionThrowsException() throws Exception {
			ImageReference imageReference = ImageReference.of("ubuntu:bionic");
			ContainerConfig config = ContainerConfig.of(imageReference, (update) -> update.withCommand("/bin/bash"));
			ImagePlatform platform = ImagePlatform.of("linux/arm64/v1");
			setVersion("1.24");
			assertThatIllegalStateException().isThrownBy(() -> this.api.create(config, platform))
				.withMessageContaining("must be at least 1.41")
				.withMessageContaining("current API version is 1.24");
		}

Subdomains

Frequently Asked Questions

What does createWithPlatformAndKnownInsufficientApiVersionThrowsException() do?
createWithPlatformAndKnownInsufficientApiVersionThrowsException() is a function in the spring-boot codebase.
What does createWithPlatformAndKnownInsufficientApiVersionThrowsException() call?
createWithPlatformAndKnownInsufficientApiVersionThrowsException() calls 2 function(s): setVersion, withCommand.

Analyze Your Own Codebase

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

Try Supermodel Free