|
2 | 2 |
|
3 | 3 | import com.fasterxml.jackson.databind.JsonNode; |
4 | 4 | import com.fasterxml.jackson.databind.ObjectMapper; |
| 5 | + |
5 | 6 | import org.acme.model.domain.CheckConfig; |
6 | 7 | import org.acme.model.domain.FormPath; |
7 | 8 | import org.junit.jupiter.api.BeforeEach; |
@@ -551,8 +552,8 @@ void extractJsonSchemaPaths_withTransformedSchema_extractsCorrectPaths() throws |
551 | 552 |
|
552 | 553 | List<FormPath> paths = service.extractJsonSchemaPaths(schema); |
553 | 554 |
|
554 | | - assertTrue(paths.contains(new FormPath("people.applicant.dateOfBirth", "string"))); |
555 | | - assertTrue(paths.contains(new FormPath("people.applicant.enrollments", "array"))); |
| 555 | + assertTrue(paths.contains(new FormPath("people.applicant.dateOfBirth", "date"))); |
| 556 | + assertTrue(paths.contains(new FormPath("people.applicant.enrollments", "array:string"))); |
556 | 557 | assertEquals(2, paths.size()); |
557 | 558 | } |
558 | 559 |
|
@@ -584,7 +585,7 @@ void extractJsonSchemaPaths_withEnrollmentOnlySchema_extractsCorrectPath() throw |
584 | 585 |
|
585 | 586 | List<FormPath> paths = service.extractJsonSchemaPaths(schema); |
586 | 587 |
|
587 | | - assertTrue(paths.contains(new FormPath("people.applicant.enrollments", "array"))); |
| 588 | + assertTrue(paths.contains(new FormPath("people.applicant.enrollments", "array:string"))); |
588 | 589 | assertEquals(1, paths.size()); |
589 | 590 | } |
590 | 591 |
|
@@ -619,8 +620,8 @@ void extractJsonSchemaPaths_withMultiplePersonIds_extractsPathsForAll() throws E |
619 | 620 |
|
620 | 621 | List<FormPath> paths = service.extractJsonSchemaPaths(schema); |
621 | 622 |
|
622 | | - assertTrue(paths.contains(new FormPath("people.applicant.dateOfBirth", "string"))); |
623 | | - assertTrue(paths.contains(new FormPath("people.spouse.dateOfBirth", "string"))); |
| 623 | + assertTrue(paths.contains(new FormPath("people.applicant.dateOfBirth", "date"))); |
| 624 | + assertTrue(paths.contains(new FormPath("people.spouse.dateOfBirth", "date"))); |
624 | 625 | assertEquals(2, paths.size()); |
625 | 626 | } |
626 | 627 | } |
0 commit comments