@Test public void patchPatientWithUpdateFromJSONExceptionReturns500() { this.exception.expect(HttpStatus.of(Response.Status.INTERNAL_SERVER_ERROR)); doThrow(Exception.class).when(this.patient).updateFromJSON(Matchers.any(JSONObject.class), Matchers.any( PatientWritePolicy.class)); this.component.patchPatient(EMPTY_JSON, ID_LABEL, ID_VALUE, true); }
@Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); } }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  @Override Response getPatient(String label, String id); @Override Response updatePatient(final String json, final String label, final String id,
        final String policy, final boolean create); @Override Response patchPatient(String json, String label, String id, boolean create); @Override Response deletePatient(String label, String id); }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  @Override Response getPatient(String label, String id); @Override Response updatePatient(final String json, final String label, final String id,
        final String policy, final boolean create); @Override Response patchPatient(String json, String label, String id, boolean create); @Override Response deletePatient(String label, String id);  }