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