@Test(expected = WebApplicationException.class) public void patchPatientInvalidJsonThrowsWebApplicationException() { try { this.component.patchPatient("[]", EID); } catch (final WebApplicationException ex) { Assert.assertEquals(Response.Status.BAD_REQUEST.getStatusCode(), ex.getResponse().getStatus()); throw ex; } }
@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);  }