@Test public void patchPatientWithMultipleOptionsReturnsAlternatives() throws QueryException { when(this.patientsQuery.<String>execute()).thenReturn(MULTIPLE_PATIENTS); Response result = this.component.patchPatient(EMPTY_JSON, ID_LABEL, ID_VALUE, true); Assert.assertEquals(300, result.getStatus()); Assert.assertSame(this.alternatives, result.getEntity()); }
@Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); } }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  @Override Response getPatient(String label, String id); @Override Response updatePatient(final String json, final String label, final String id,
        final String policy, final boolean create); @Override Response patchPatient(String json, String label, String id, boolean create); @Override Response deletePatient(String label, String id); }
DefaultPatientByLabeledExternalIdentifierResourceImpl extends XWikiResource implements
    PatientByLabeledExternalIdentifierResource { @Override public Response patchPatient(String json, String label, String id, boolean create) { return updatePatient(json, label, id, PatientWritePolicy.MERGE, create); }  @Override Response getPatient(String label, String id); @Override Response updatePatient(final String json, final String label, final String id,
        final String policy, final boolean create); @Override Response patchPatient(String json, String label, String id, boolean create); @Override Response deletePatient(String label, String id);  }