@Test public void patchPatientUpdatesPatientSuccessfully() { final Response response = this.patientResource.patchPatient(EMPTY_JSON, PATIENT_ID); verify(this.patient, times(1)).updateFromJSON(any(JSONObject.class), eq(PatientWritePolicy.MERGE)); Assert.assertEquals(Status.NO_CONTENT.getStatusCode(), response.getStatus()); }
@Override public Response patchPatient(final String json, final String id) { return updatePatient(json, id, PatientWritePolicy.MERGE); }
DefaultPatientResourceImpl extends XWikiResource implements PatientResource { @Override public Response patchPatient(final String json, final String id) { return updatePatient(json, id, PatientWritePolicy.MERGE); } }
DefaultPatientResourceImpl extends XWikiResource implements PatientResource { @Override public Response patchPatient(final String json, final String id) { return updatePatient(json, id, PatientWritePolicy.MERGE); }  }
DefaultPatientResourceImpl extends XWikiResource implements PatientResource { @Override public Response patchPatient(final String json, final String id) { return updatePatient(json, id, PatientWritePolicy.MERGE); }  @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 patchPatient(final String json, final String id) { return updatePatient(json, id, PatientWritePolicy.MERGE); }  @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);  }