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())); } }