Skip to content

Commit e349ec4

Browse files
committed
Fix broken FormPath test
Fixes #301
1 parent 95ab7c0 commit e349ec4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

builder-api/src/test/java/org/acme/service/InputSchemaServiceTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,10 @@ void extractJsonSchemaPaths_withMultiplePersonIds_extractsPathsForAll() throws E
617617
""";
618618
JsonNode schema = objectMapper.readTree(schemaJson);
619619

620-
List<String> paths = service.extractJsonSchemaPaths(schema);
620+
List<FormPath> paths = service.extractJsonSchemaPaths(schema);
621621

622-
assertTrue(paths.contains("people.applicant.dateOfBirth"));
623-
assertTrue(paths.contains("people.spouse.dateOfBirth"));
622+
assertTrue(paths.contains(new FormPath("people.applicant.dateOfBirth", "string")));
623+
assertTrue(paths.contains(new FormPath("people.spouse.dateOfBirth", "string")));
624624
assertEquals(2, paths.size());
625625
}
626626
}

0 commit comments

Comments
 (0)