From 39ad955969148809f3bbcfdda90b80a86a164b99 Mon Sep 17 00:00:00 2001 From: Scott Frederick Date: Tue, 8 Nov 2022 10:32:25 -0600 Subject: [PATCH] Update Paketo tests for Platform API 0.10 See gh-32949 --- .../boot/image/paketo/PaketoBuilderTests.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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 6e2c6cc8f4..68db0fbf38 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 @@ -21,7 +21,6 @@ import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; -import java.util.Collections; import java.util.List; import java.util.function.Consumer; import java.util.function.Predicate; @@ -299,10 +298,8 @@ class PaketoBuilderTests { metadata.buildpacks().contains("paketo-buildpacks/ca-certificates", "paketo-buildpacks/bellsoft-liberica", "paketo-buildpacks/executable-jar", "paketo-buildpacks/spring-boot", "paketo-buildpacks/native-image"); - metadata.processOfType("web").extracting("command") - .isEqualTo(Collections.singletonList("/workspace/example.ExampleApplication")); - metadata.processOfType("native-image").extracting("command") - .isEqualTo(Collections.singletonList("/workspace/example.ExampleApplication")); + metadata.processOfType("web").containsExactly("/workspace/example.ExampleApplication"); + metadata.processOfType("native-image").containsExactly("/workspace/example.ExampleApplication"); }); assertImageHasDependenciesSbomLayer(imageReference, config, "native-image"); }