This commit is contained in:
James Agnew 2019-01-04 11:29:14 -05:00
parent a1275874f8
commit f39cf58a4a
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ public class ResourceModifiedTest {
public void testCreate() {
Organization org = new Organization();
org.setName("testOrgName");
org.setId("testOrgId");
org.setId("Organization/testOrgId");
ResourceModifiedMessage msg = new ResourceModifiedMessage(myFhirContext, org, ResourceModifiedMessage.OperationTypeEnum.CREATE);
assertEquals(org.getIdElement(), msg.getId(myFhirContext));
assertEquals(ResourceModifiedMessage.OperationTypeEnum.CREATE, msg.getOperationType());
@ -27,7 +27,7 @@ public class ResourceModifiedTest {
public void testUpdate() {
Organization org = new Organization();
org.setName("testOrgName");
org.setId("testOrgId");
org.setId("Organization/testOrgId");
ResourceModifiedMessage msg = new ResourceModifiedMessage(myFhirContext, org, ResourceModifiedMessage.OperationTypeEnum.UPDATE);
assertEquals(org.getIdElement(), msg.getId(myFhirContext));
assertEquals(ResourceModifiedMessage.OperationTypeEnum.UPDATE, msg.getOperationType());