@Test public void patchPatientUpdatesPatientSuccessfully() { final Response response = this.component.patchPatient(EMPTY_JSON, EID); verify(this.patient, times(1)).updateFromJSON(any(JSONObject.class), eq(PatientWritePolicy.MERGE)); Assert.assertEquals(Response.Status.NO_CONTENT.getStatusCode(), response.getStatus()); }
@Override public Response patchPatient(final String json, final String eid) { return updatePatient(json, eid, PatientWritePolicy.MERGE); }
DefaultPatientByExternalIdResourceImpl extends XWikiResource implements PatientByExternalIdResource { @Override public Response patchPatient(final String json, final String eid) { return updatePatient(json, eid, PatientWritePolicy.MERGE); } }
DefaultPatientByExternalIdResourceImpl extends XWikiResource implements PatientByExternalIdResource { @Override public Response patchPatient(final String json, final String eid) { return updatePatient(json, eid, PatientWritePolicy.MERGE); }  }
DefaultPatientByExternalIdResourceImpl extends XWikiResource implements PatientByExternalIdResource { @Override public Response patchPatient(final String json, final String eid) { return updatePatient(json, eid, PatientWritePolicy.MERGE); }  @Override Response getPatient(String eid); @Override Response updatePatient(final String json, final String eid, final String policy); @Override Response patchPatient(final String json, final String eid); @Override Response deletePatient(String eid); }
DefaultPatientByExternalIdResourceImpl extends XWikiResource implements PatientByExternalIdResource { @Override public Response patchPatient(final String json, final String eid) { return updatePatient(json, eid, PatientWritePolicy.MERGE); }  @Override Response getPatient(String eid); @Override Response updatePatient(final String json, final String eid, final String policy); @Override Response patchPatient(final String json, final String eid); @Override Response deletePatient(String eid);  }