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

loadWithEmptyResponseThrowsException() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0a1983fa_f6a2_2965_766a_5988f4a51a26["loadWithEmptyResponseThrowsException()"]
  ffedf588_7c32_be87_49b5_6f0bec311aa1["http()"]
  0a1983fa_f6a2_2965_766a_5988f4a51a26 -->|calls| ffedf588_7c32_be87_49b5_6f0bec311aa1
  5ebda6ce_1915_7ec7_82b6_9dbaace8503c["emptyResponse()"]
  0a1983fa_f6a2_2965_766a_5988f4a51a26 -->|calls| 5ebda6ce_1915_7ec7_82b6_9dbaace8503c
  style 0a1983fa_f6a2_2965_766a_5988f4a51a26 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 370–378

		@Test // gh-23130
		void loadWithEmptyResponseThrowsException() throws Exception {
			Image image = Image.of(getClass().getResourceAsStream("type/image.json"));
			ImageArchive archive = ImageArchive.from(image);
			URI loadUri = new URI(IMAGES_URL + "/load");
			given(http().post(eq(loadUri), eq("application/x-tar"), any())).willReturn(emptyResponse());
			assertThatIllegalStateException().isThrownBy(() -> this.api.load(archive, this.loadListener))
				.withMessageContaining("Invalid response received");
		}

Subdomains

Frequently Asked Questions

What does loadWithEmptyResponseThrowsException() do?
loadWithEmptyResponseThrowsException() is a function in the spring-boot codebase.
What does loadWithEmptyResponseThrowsException() call?
loadWithEmptyResponseThrowsException() calls 2 function(s): emptyResponse, http.

Analyze Your Own Codebase

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

Try Supermodel Free