loadWithErrorResponseThrowsException() — spring-boot Function Reference
Architecture documentation for the loadWithErrorResponseThrowsException() function in DockerApiTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f295e23c_a4a3_4a11_b01e_597235ee92e0["loadWithErrorResponseThrowsException()"] ffedf588_7c32_be87_49b5_6f0bec311aa1["http()"] f295e23c_a4a3_4a11_b01e_597235ee92e0 -->|calls| ffedf588_7c32_be87_49b5_6f0bec311aa1 88e4c755_21cd_03d2_7b78_c0a678363843["responseOf()"] f295e23c_a4a3_4a11_b01e_597235ee92e0 -->|calls| 88e4c755_21cd_03d2_7b78_c0a678363843 style f295e23c_a4a3_4a11_b01e_597235ee92e0 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 380–388
@Test // gh-31243
void loadWithErrorResponseThrowsException() 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(responseOf("load-error.json"));
assertThatIllegalStateException().isThrownBy(() -> this.api.load(archive, this.loadListener))
.withMessageContaining("Error response received");
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does loadWithErrorResponseThrowsException() do?
loadWithErrorResponseThrowsException() is a function in the spring-boot codebase.
What does loadWithErrorResponseThrowsException() call?
loadWithErrorResponseThrowsException() calls 2 function(s): http, responseOf.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free