@Test public void saveDoesNothingWhenNoDataPresent() throws ComponentLookupException { this.mocker.getComponentUnderTest().save(this.patient); verify(this.doc).getXObject(Patient.CLASS_REFERENCE, true, this.context); Mockito.verifyNoMoreInteractions(this.doc); }
@Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }
MedicalReportsController implements PatientDataController<Attachment> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); } }
MedicalReportsController implements PatientDataController<Attachment> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  }
MedicalReportsController implements PatientDataController<Attachment> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override PatientData<Attachment> 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<Attachment> readJSON(JSONObject json); @Override String getName(); }
MedicalReportsController implements PatientDataController<Attachment> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override PatientData<Attachment> 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<Attachment> readJSON(JSONObject json); @Override String getName();  }