createCreatesContainer() — spring-boot Function Reference
Architecture documentation for the createCreatesContainer() function in DockerApiTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 7a37c2b2_9f46_ed5a_d1d2_4d8261dd16fc["createCreatesContainer()"] 274a52b3_b07b_ef2a_172f_1c8b25267451["withCommand()"] 7a37c2b2_9f46_ed5a_d1d2_4d8261dd16fc -->|calls| 274a52b3_b07b_ef2a_172f_1c8b25267451 ffedf588_7c32_be87_49b5_6f0bec311aa1["http()"] 7a37c2b2_9f46_ed5a_d1d2_4d8261dd16fc -->|calls| ffedf588_7c32_be87_49b5_6f0bec311aa1 88e4c755_21cd_03d2_7b78_c0a678363843["responseOf()"] 7a37c2b2_9f46_ed5a_d1d2_4d8261dd16fc -->|calls| 88e4c755_21cd_03d2_7b78_c0a678363843 759ca794_5cea_60bd_cef5_13bbbdbfd61c["toString()"] 7a37c2b2_9f46_ed5a_d1d2_4d8261dd16fc -->|calls| 759ca794_5cea_60bd_cef5_13bbbdbfd61c style 7a37c2b2_9f46_ed5a_d1d2_4d8261dd16fc 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 654–667
@Test
void createCreatesContainer() throws Exception {
ImageReference imageReference = ImageReference.of("ubuntu:bionic");
ContainerConfig config = ContainerConfig.of(imageReference, (update) -> update.withCommand("/bin/bash"));
URI createUri = new URI(CONTAINERS_URL + "/create");
given(http().post(eq(createUri), eq("application/json"), any()))
.willReturn(responseOf("create-container-response.json"));
ContainerReference containerReference = this.api.create(config, null);
assertThat(containerReference).hasToString("e90e34656806");
then(http()).should().post(any(), any(), this.writer.capture());
ByteArrayOutputStream out = new ByteArrayOutputStream();
this.writer.getValue().accept(out);
assertThat(out.toByteArray()).hasSize(config.toString().length());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does createCreatesContainer() do?
createCreatesContainer() is a function in the spring-boot codebase.
What does createCreatesContainer() call?
createCreatesContainer() calls 4 function(s): http, responseOf, toString, withCommand.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free