@Test public void saveWithMergePolicyDoesNothingWhenDataIsNull() { when(this.patient.getData(DATA_NAME)).thenReturn(null); this.component.save(this.patient, PatientWritePolicy.MERGE); verify(this.doc, times(1)).getXObject(Patient.CLASS_REFERENCE, true, this.xcontext); verifyNoMoreInteractions(this.doc); }
@Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }
AbstractComplexController implements PatientDataController<T> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); } }
AbstractComplexController implements PatientDataController<T> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  }
AbstractComplexController implements PatientDataController<T> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override @SuppressWarnings("unchecked") PatientData<T> load(Patient patient); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override void writeJSON(Patient patient, JSONObject json); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override PatientData<T> readJSON(JSONObject json); }
AbstractComplexController implements PatientDataController<T> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override @SuppressWarnings("unchecked") PatientData<T> load(Patient patient); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override void writeJSON(Patient patient, JSONObject json); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override PatientData<T> readJSON(JSONObject json);  }