From 6c2ff56fbab755d952311e9fcc321f3ec3e00dfe Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 12 Jan 2021 17:31:21 -0800 Subject: [PATCH] Fix tests to also work in IDE --- .../boot/gradle/tasks/bundling/BootJarIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootJarIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootJarIntegrationTests.java index 6f7080fcfd..70ce20fdc8 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootJarIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootJarIntegrationTests.java @@ -304,7 +304,7 @@ class BootJarIntegrationTests extends AbstractBootArchiveIntegrationTests { assertThat(output).containsPattern("1\\. .*classes"); assertThat(output).containsPattern("2\\. .*library-1.0-SNAPSHOT.jar"); assertThat(output).containsPattern("3\\. .*commons-lang3-3.9.jar"); - assertThat(output).containsPattern("4\\. .*spring-boot-jarmode-layertools-.*.jar"); + assertThat(output).containsPattern("4\\. .*spring-boot-jarmode-layertools.*.jar"); assertThat(output).doesNotContain("5. "); } @@ -314,7 +314,7 @@ class BootJarIntegrationTests extends AbstractBootArchiveIntegrationTests { BuildResult result = this.gradleBuild.build("launch"); String output = result.getOutput(); assertThat(output).containsPattern("1\\. .*classes"); - assertThat(output).containsPattern("2\\. .*spring-boot-jarmode-layertools-.*.jar"); + assertThat(output).containsPattern("2\\. .*spring-boot-jarmode-layertools.*.jar"); assertThat(output).containsPattern("3\\. .*library-1.0-SNAPSHOT.jar"); assertThat(output).containsPattern("4\\. .*commons-lang3-3.9.jar"); assertThat(output).doesNotContain("5. ");