issue-2901 fixing test
This commit is contained in:
parent
ff7433edd7
commit
49124c298d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue