@Test public void saveDoesNothingWhenPatientHasAllergiesClass() { when(this.doc.getXObject(AllergiesController.CLASS_REFERENCE, true, this.xcontext)).thenReturn(null); this.component.save(this.patient); verify(this.doc, times(1)).getXObject(AllergiesController.CLASS_REFERENCE, true, this.xcontext); verifyNoMoreInteractions(this.doc); verifyZeroInteractions(this.dataHolder); }
@Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }
AllergiesController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); } }
AllergiesController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  }
AllergiesController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override PatientData<String> load(Patient patient); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override void writeJSON(Patient patient, JSONObject json); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override PatientData<String> readJSON(JSONObject json); }
AllergiesController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override PatientData<String> load(Patient patient); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override void writeJSON(Patient patient, JSONObject json); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override PatientData<String> readJSON(JSONObject json);  }