Added test to make sure we have loaded the expected package id.

This commit is contained in:
Kevin Hartmann 2021-04-30 15:14:19 -04:00
parent 983d811af6
commit b3afe41de8
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,4 @@
---
type: add
issue: 2590
title: "When resources are created using package load, the new resources will use the same IDs as were provided in with the resource definitions in the package, if they exist"

View File

@ -259,7 +259,10 @@ public class NpmR4Test extends BaseJpaR4Test {
map.add(StructureDefinition.SP_URL, new UriParam("http://hl7.org/fhir/uv/shorthand/CodeSystem/shorthand-code-system"));
IBundleProvider result = myCodeSystemDao.search(map);
assertEquals(1, result.sizeOrThrowNpe());
IBaseResource resource = result.getResources(0, 1).get(0);
assertEquals("CodeSystem/shorthand-code-system/_history/1", resource.getIdElement().toString());
});
}
@Test