This commit is contained in:
James Agnew 2019-01-25 10:56:17 -05:00
parent 38d03ea99a
commit f55be0b6d0
2 changed files with 3 additions and 3 deletions

View File

@ -389,8 +389,8 @@ public class InMemorySubscriptionMatcherTestR4 {
msg.setId(new IdType("Patient/ABC"));
SubscriptionMatchResult result = myInMemorySubscriptionMatcher.match(subscription, msg);
fail();
} catch (InternalErrorException e){
assertEquals("Failure processing resource ID[Patient/ABC] for subscription ID[Subscription/123]: Invalid resource reference found at path[Patient.managingOrganization] - Does not contain resource type - urn:uuid:13720262-b392-465f-913e-54fb198ff954", e.getMessage());
} catch (AssertionError e){
assertEquals("Reference at managingOrganization is invalid: urn:uuid:13720262-b392-465f-913e-54fb198ff954", e.getMessage());
}
}

View File

@ -156,7 +156,7 @@ public class ResourceModifiedMessage implements IResourceMessage {
continue;
}
if (ref.startsWith("urn:uuid:")) {
throw new AssertionError("Reference at " + next.getName() + " is invalid: " + next.getResourceReference());
throw new AssertionError("Reference at " + next.getName() + " is invalid: " + ref);
}
}
}