diff --git a/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java b/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java index 6286df1a75c..d610f44ff34 100644 --- a/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java +++ b/spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/paketo/PaketoBuilderTests.java @@ -312,8 +312,10 @@ class PaketoBuilderTests { .contains("paketo-buildpacks/ca-certificates", "paketo-buildpacks/bellsoft-liberica", "paketo-buildpacks/executable-jar", "paketo-buildpacks/spring-boot", "paketo-buildpacks/native-image"); - metadata.processOfType("web").containsExactly("/workspace/example.ExampleApplication"); - metadata.processOfType("native-image").containsExactly("/workspace/example.ExampleApplication"); + metadata.processOfType("web") + .satisfiesExactly((command) -> assertThat(command).endsWith("/example.ExampleApplication")); + metadata.processOfType("native-image") + .satisfiesExactly((command) -> assertThat(command).endsWith("/example.ExampleApplication")); }); assertImageHasDependenciesSbomLayer(imageReference, config, "native-image"); }