whenBuildImageIsInvokedWithCreatedDate() — spring-boot Function Reference
Architecture documentation for the whenBuildImageIsInvokedWithCreatedDate() function in BuildImageTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 9df13795_b342_e23d_fbbd_870360bdf14f["whenBuildImageIsInvokedWithCreatedDate()"] 41f5c9ca_7a61_90cb_4750_c29c1a092e1c["DockerApi()"] 9df13795_b342_e23d_fbbd_870360bdf14f -->|calls| 41f5c9ca_7a61_90cb_4750_c29c1a092e1c 8b3fcc9b_3941_2812_09e4_c0a09539f3dd["inspect()"] 9df13795_b342_e23d_fbbd_870360bdf14f -->|calls| 8b3fcc9b_3941_2812_09e4_c0a09539f3dd a18a2648_7c7c_16c8_52c2_6d1bb55a7462["getCreated()"] 9df13795_b342_e23d_fbbd_870360bdf14f -->|calls| a18a2648_7c7c_16c8_52c2_6d1bb55a7462 1c432d58_16ca_1503_d046_4cba5114e02b["removeImage()"] 9df13795_b342_e23d_fbbd_870360bdf14f -->|calls| 1c432d58_16ca_1503_d046_4cba5114e02b 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1["image()"] 9df13795_b342_e23d_fbbd_870360bdf14f -->|calls| 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1 56c6a94a_906f_bea5_18c0_207cf050ae68["of()"] 9df13795_b342_e23d_fbbd_870360bdf14f -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68 style 9df13795_b342_e23d_fbbd_870360bdf14f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-maven-plugin/src/dockerTest/java/org/springframework/boot/maven/BuildImageTests.java lines 476–490
@TestTemplate
void whenBuildImageIsInvokedWithCreatedDate(MavenBuild mavenBuild) {
mavenBuild.project("dockerTest", "build-image-created-date")
.goals("package")
.systemProperty("spring-boot.build-image.pullPolicy", "IF_NOT_PRESENT")
.execute((project) -> {
assertThat(buildLog(project)).contains("Building image")
.contains("docker.io/library/build-image-created-date:0.0.1.BUILD-SNAPSHOT")
.contains("Successfully built image");
Image image = new DockerApi().image()
.inspect(ImageReference.of("docker.io/library/build-image-created-date:0.0.1.BUILD-SNAPSHOT"));
assertThat(image.getCreated()).isEqualTo("2020-07-01T12:34:56Z");
removeImage("build-image-created-date", "0.0.1.BUILD-SNAPSHOT");
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does whenBuildImageIsInvokedWithCreatedDate() do?
whenBuildImageIsInvokedWithCreatedDate() is a function in the spring-boot codebase.
What does whenBuildImageIsInvokedWithCreatedDate() call?
whenBuildImageIsInvokedWithCreatedDate() calls 6 function(s): DockerApi, getCreated, image, inspect, of, removeImage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free