issue-2901 fixing test

This commit is contained in:
leif stawnyczy 2021-09-02 13:15:24 -04:00
parent ff7433edd7
commit 49124c298d
1 changed files with 2 additions and 7 deletions

View File

@ -114,15 +114,10 @@ public class FhirResourceDaoCreatePlaceholdersR4Test extends BaseJpaR4Test {
o.setStatus(ObservationStatus.FINAL);
o.getSubject().setReference("Patient/FOO");
Assertions.assertThrows(InvalidRequestException.class, () -> {
Exception ex = Assertions.assertThrows(InvalidRequestException.class, () -> {
myObservationDao.update(o, mySrd);
});
// try {
//
// fail();
// } catch (InvalidRequestException e) {
// assertThat(e.getMessage(), startsWith("Resource Patient/FOO not found, specified in path: Observation.subject"));
// }
assertThat(ex.getMessage(), startsWith("Resource Patient/FOO not found, specified in path: Observation.subject"));
}
@Test