From 0dc0240c0628290978788b21eaa4bbf71807f5f9 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Wed, 9 Apr 2025 00:01:15 +0900 Subject: [PATCH] Polish Signed-off-by: Johnny Lim See gh-45036 --- .../EmbeddedServerContainerInvocationContextProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java b/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java index 50074fadf48..3c25afd0756 100644 --- a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java +++ b/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java @@ -130,7 +130,8 @@ class EmbeddedServerContainerInvocationContextProvider return launcher; } catch (NoSuchMethodException ex) { - throw new IllegalStateException("Launcher class %s does not have an (Application, File) constructor"); + throw new IllegalStateException(String + .format("Launcher class %s does not have an (Application, File) constructor", launcherClass.getName())); } }