@Test public void updatePatientIgnoresMissingPatient() { doReturn(null).when(this.repository).get(anyString()); WebApplicationException ex = null; try { this.patientResource.updatePatient("", PATIENT_ID, UPDATE); } catch (WebApplicationException temp) { ex = temp; } Assert.assertNotNull("updatePatient did not throw a WebApplicationException as expected " + "when the patient could not be found", ex); Assert.assertEquals(Status.NOT_FOUND.getStatusCode(), ex.getResponse().getStatus()); verify(this.logger).debug("Patient record [{}] doesn't exist yet. It can be created by POST-ing the" + " JSON to /rest/patients", PATIENT_ID); }
@Override public Response updatePatient(String json, String id, String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, id, policyType); }
DefaultPatientResourceImpl extends XWikiResource implements PatientResource { @Override public Response updatePatient(String json, String id, String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, id, policyType); } }
DefaultPatientResourceImpl extends XWikiResource implements PatientResource { @Override public Response updatePatient(String json, String id, String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, id, policyType); }  }
DefaultPatientResourceImpl extends XWikiResource implements PatientResource { @Override public Response updatePatient(String json, String id, String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, id, policyType); }  @Override Response getPatient(String id); @Override Response updatePatient(String json, String id, String policy); @Override Response patchPatient(final String json, final String id); @Override Response deletePatient(String id); }
DefaultPatientResourceImpl extends XWikiResource implements PatientResource { @Override public Response updatePatient(String json, String id, String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, id, policyType); }  @Override Response getPatient(String id); @Override Response updatePatient(String json, String id, String policy); @Override Response patchPatient(final String json, final String id); @Override Response deletePatient(String id);  }