Skip to content

Commit

Permalink
some improved formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Atanasov <[email protected]>
  • Loading branch information
ata-nas committed Dec 17, 2024
1 parent 42b1dcd commit 808732c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ class ServerMappedConfigSourceInitializerTest {
@MethodSource("allConfigDataTypes")
void testVerifyAllFieldsInRecordsAreMapped(final Class<? extends Record> 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);
final String prefix = configDataAnnotation.value();
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());
Expand Down

0 comments on commit 808732c

Please sign in to comment.