From b23d7fe20359a2d27ddb388cbb6303c331bd0537 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 30 Sep 2025 14:49:47 +0100 Subject: [PATCH] Ignore deprecation warning caused by Framework See gh-45501 See spring-projects/spring-framework#35557 --- .../springframework/boot/image/paketo/PaketoBuilderTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system-test/spring-boot-image-system-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java b/system-test/spring-boot-image-system-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java index aeb02374d04..408ac4f1c61 100644 --- a/system-test/spring-boot-image-system-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java +++ b/system-test/spring-boot-image-system-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java @@ -312,11 +312,14 @@ class PaketoBuilderTests { // these deprecations are from native image buildpacks this.gradleBuild.expectDeprecationMessages("Using a deprecated option --report-unsupported-elements-at-runtime", "The option is deprecated and will be removed in the future."); + // this deprecation is from Framework (spring-projects/spring-framework#35557) + this.gradleBuild.expectDeprecationMessages("Using a deprecated option --install-exit-handlers"); writeMainClass(); String imageName = "paketo-integration/" + this.gradleBuild.getProjectDir().getName(); ImageReference imageReference = ImageReference.of(ImageName.of(imageName)); BuildResult result = buildImage(imageName); assertThat(result.task(":bootBuildImage").getOutcome()).isEqualTo(TaskOutcome.SUCCESS); + System.out.println(result.getOutput()); assertThat(result.getOutput()).contains("Running creator"); try (GenericContainer container = new GenericContainer<>(imageName)) { container.withExposedPorts(8080);