buildsImageWithCurrentCreatedDate() — spring-boot Function Reference
Architecture documentation for the buildsImageWithCurrentCreatedDate() function in BootBuildImageIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0f3527ed_bca1_8163_39ca_5908ddd6cb9e["buildsImageWithCurrentCreatedDate()"] f965ce7e_2357_c125_a1d3_24069c68ecf8["writeMainClass()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| f965ce7e_2357_c125_a1d3_24069c68ecf8 66ac0fbc_cfc2_1ca0_5597_62584de5d0fb["writeLongNameResource()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| 66ac0fbc_cfc2_1ca0_5597_62584de5d0fb b3171812_ab1f_87c4_a83a_2a91e929e461["getName()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| b3171812_ab1f_87c4_a83a_2a91e929e461 41f5c9ca_7a61_90cb_4750_c29c1a092e1c["DockerApi()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| 41f5c9ca_7a61_90cb_4750_c29c1a092e1c 8b3fcc9b_3941_2812_09e4_c0a09539f3dd["inspect()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| 8b3fcc9b_3941_2812_09e4_c0a09539f3dd a18a2648_7c7c_16c8_52c2_6d1bb55a7462["getCreated()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| a18a2648_7c7c_16c8_52c2_6d1bb55a7462 59ffb962_26a5_d14b_c297_e84d0815a53a["removeImages()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| 59ffb962_26a5_d14b_c297_e84d0815a53a 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1["image()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1 56c6a94a_906f_bea5_18c0_207cf050ae68["of()"] 0f3527ed_bca1_8163_39ca_5908ddd6cb9e -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68 style 0f3527ed_bca1_8163_39ca_5908ddd6cb9e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/dockerTest/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageIntegrationTests.java lines 391–410
@TestTemplate
void buildsImageWithCurrentCreatedDate() throws IOException {
writeMainClass();
writeLongNameResource();
BuildResult result = this.gradleBuild.build("bootBuildImage");
String projectName = this.gradleBuild.getProjectDir().getName();
BuildTask task = result.task(":bootBuildImage");
assertThat(task).isNotNull();
assertThat(task.getOutcome()).isEqualTo(TaskOutcome.SUCCESS);
assertThat(result.getOutput()).contains("docker.io/library/" + projectName);
assertThat(result.getOutput()).contains("---> Test Info buildpack building");
assertThat(result.getOutput()).contains("---> Test Info buildpack done");
Image image = new DockerApi().image().inspect(ImageReference.of("docker.io/library/" + projectName));
OffsetDateTime createdDateTime = OffsetDateTime.parse(image.getCreated());
OffsetDateTime current = OffsetDateTime.now().withOffsetSameInstant(createdDateTime.getOffset());
assertThat(createdDateTime.getYear()).isEqualTo(current.getYear());
assertThat(createdDateTime.getMonth()).isEqualTo(current.getMonth());
assertThat(createdDateTime.getDayOfMonth()).isEqualTo(current.getDayOfMonth());
removeImages(projectName);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does buildsImageWithCurrentCreatedDate() do?
buildsImageWithCurrentCreatedDate() is a function in the spring-boot codebase.
What does buildsImageWithCurrentCreatedDate() call?
buildsImageWithCurrentCreatedDate() calls 9 function(s): DockerApi, getCreated, getName, image, inspect, of, removeImages, writeLongNameResource, and 1 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free