From ca88639fc4fefbc91fd55c58fd008564809e895b Mon Sep 17 00:00:00 2001 From: Atanas Atanasov Date: Tue, 17 Dec 2024 16:17:26 +0200 Subject: [PATCH] some improved formatting Signed-off-by: Atanas Atanasov --- .../config/ServerMappedConfigSourceInitializerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/test/java/com/hedera/block/server/config/ServerMappedConfigSourceInitializerTest.java b/server/src/test/java/com/hedera/block/server/config/ServerMappedConfigSourceInitializerTest.java index ad41e27a4..f478dd2af 100644 --- a/server/src/test/java/com/hedera/block/server/config/ServerMappedConfigSourceInitializerTest.java +++ b/server/src/test/java/com/hedera/block/server/config/ServerMappedConfigSourceInitializerTest.java @@ -79,7 +79,7 @@ class ServerMappedConfigSourceInitializerTest { @MethodSource("allConfigDataTypes") void testVerifyAllFieldsInRecordsAreMapped(final Class config) { if (!config.isAnnotationPresent(ConfigData.class)) { - fail("Class %s is missing the ConfigData annotation! All config classes MUST have that annotation present!" + fail("Class [%s] is missing the ConfigData annotation! All config classes MUST have that annotation present!" .formatted(config.getSimpleName())); } else { final ConfigData configDataAnnotation = config.getDeclaredAnnotation(ConfigData.class); @@ -87,7 +87,7 @@ void testVerifyAllFieldsInRecordsAreMapped(final Class config) for (final RecordComponent recordComponent : config.getRecordComponents()) { if (!recordComponent.isAnnotationPresent(ConfigProperty.class)) { fail( - "Field %s in %s is missing the ConfigProperty annotation! All fields in config classes MUST have that annotation present!" + "Field [%s] in [%s] is missing the ConfigProperty annotation! All fields in config classes MUST have that annotation present!" .formatted(recordComponent.getName(), config.getSimpleName())); } else { final String expectedMappedName = "%s.%s".formatted(prefix, recordComponent.getName());