From 93c3116b3a0f24b6e9912db38747eea1985d0e9e Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 9 May 2023 16:56:18 +0100 Subject: [PATCH] Fix failsGracefullyWhenNoTestMainMethodIsFound on Windows --- .../boot/gradle/tasks/run/BootTestRunIntegrationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/run/BootTestRunIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/run/BootTestRunIntegrationTests.java index 76fd8b33ec..8bb449d095 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/run/BootTestRunIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/run/BootTestRunIntegrationTests.java @@ -113,7 +113,7 @@ class BootTestRunIntegrationTests { else { assertThat(result.getOutput()) .contains("Main class name has not been configured and it could not be resolved from classpath " - + "build/classes/java/test"); + + String.join(File.separator, "build", "classes", "java", "test")); } }