@Test public void updatePatientReturnsNoContentResponse() throws ComponentLookupException { String json = "{\"id\":\"id\"}"; Response response = this.component.updatePatient(json, EID, UPDATE); verify(this.logger).debug("Updating patient record with external ID [{}] via REST with JSON: {}", EID, json); assertEquals(Response.Status.NO_CONTENT.getStatusCode(), response.getStatus()); }
@Override public Response updatePatient(final String json, final String eid, final String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, eid, policyType); }
DefaultPatientByExternalIdResourceImpl extends XWikiResource implements PatientByExternalIdResource { @Override public Response updatePatient(final String json, final String eid, final String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, eid, policyType); } }
DefaultPatientByExternalIdResourceImpl extends XWikiResource implements PatientByExternalIdResource { @Override public Response updatePatient(final String json, final String eid, final String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, eid, policyType); }  }
DefaultPatientByExternalIdResourceImpl extends XWikiResource implements PatientByExternalIdResource { @Override public Response updatePatient(final String json, final String eid, final String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, eid, policyType); }  @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 updatePatient(final String json, final String eid, final String policy) { final PatientWritePolicy policyType = PatientWritePolicy.fromString(policy); return updatePatient(json, eid, policyType); }  @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);  }