mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-18 10:55:22 +00:00
Fix test error
This commit is contained in:
parent
19810db65d
commit
432579c591
@ -660,7 +660,7 @@ public class BulkDataExportSvcImplR4Test extends BaseJpaR4Test {
|
|||||||
IBulkDataExportSvc.JobInfo jobInfo = myBulkDataExportSvc.getJobInfoOrThrowResourceNotFound(jobDetails.getJobId());
|
IBulkDataExportSvc.JobInfo jobInfo = myBulkDataExportSvc.getJobInfoOrThrowResourceNotFound(jobDetails.getJobId());
|
||||||
|
|
||||||
assertThat(jobInfo.getStatus(), equalTo(BulkJobStatusEnum.COMPLETE));
|
assertThat(jobInfo.getStatus(), equalTo(BulkJobStatusEnum.COMPLETE));
|
||||||
assertThat(jobInfo.getFiles().size(), equalTo(3));
|
assertThat(jobInfo.getFiles().size(), equalTo(2));
|
||||||
assertThat(jobInfo.getFiles().get(0).getResourceType(), is(equalTo("Immunization")));
|
assertThat(jobInfo.getFiles().get(0).getResourceType(), is(equalTo("Immunization")));
|
||||||
|
|
||||||
//Ensure that all immunizations refer to the golden resource via extension
|
//Ensure that all immunizations refer to the golden resource via extension
|
||||||
@ -676,7 +676,7 @@ public class BulkDataExportSvcImplR4Test extends BaseJpaR4Test {
|
|||||||
|
|
||||||
//Ensure all patients are linked to their golden resource.
|
//Ensure all patients are linked to their golden resource.
|
||||||
assertThat(jobInfo.getFiles().get(1).getResourceType(), is(equalTo("Patient")));
|
assertThat(jobInfo.getFiles().get(1).getResourceType(), is(equalTo("Patient")));
|
||||||
List<Patient> patients = readBulkExportContentsIntoResources(getBinaryContents(jobInfo, 2), Patient.class);
|
List<Patient> patients = readBulkExportContentsIntoResources(getBinaryContents(jobInfo, 1), Patient.class);
|
||||||
patients.stream()
|
patients.stream()
|
||||||
.filter(patient -> patient.getIdElement().getIdPart().equals("PAT999"))
|
.filter(patient -> patient.getIdElement().getIdPart().equals("PAT999"))
|
||||||
.forEach(patient -> {
|
.forEach(patient -> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user