From 52faeebe4fe9133600d4aa43174bd92dbb752ce7 Mon Sep 17 00:00:00 2001 From: Mousa Al Bateh Date: Fri, 4 Oct 2024 03:05:40 +0200 Subject: [PATCH] Corrected string formatting. --- .../samples/petclinic/PostgresIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/springframework/samples/petclinic/PostgresIntegrationTests.java b/src/test/java/org/springframework/samples/petclinic/PostgresIntegrationTests.java index 82e7a6a87c6..87d98113ee7 100644 --- a/src/test/java/org/springframework/samples/petclinic/PostgresIntegrationTests.java +++ b/src/test/java/org/springframework/samples/petclinic/PostgresIntegrationTests.java @@ -117,14 +117,14 @@ public void printProperties() { String resolved = environment.getProperty(name); if (resolved == null) { - fail("resolved property named {0} was expecting a string but is null.", name); + fail("resolved property named {%s} was expecting a string but is null.", name); return; } Object sourceProperty = source.getProperty(name); if (sourceProperty == null || sourceProperty.toString() == null) { - fail("source property named {0} was expecting a string value but is null.", name); + fail("source property named {%s} was expecting a string but is null.", name); return; }