@Test(expected = WebApplicationException.class) public void patchPatientIdFromJsonAndPatientIdConflictThrowsWebApplicationException() { try { this.patientResource.patchPatient("{\"id\":\"wrong\"}", PATIENT_ID); } catch (final WebApplicationException ex) { Assert.assertEquals(Status.CONFLICT.getStatusCode(), ex.getResponse().getStatus()); throw ex; } }
@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);  }