@Test public void saveDoesNothingIfPatientHasNoPatientClass() { when(this.doc.getXObject(eq(Patient.CLASS_REFERENCE), eq(true), any())).thenReturn(null); this.component.save(this.patient); verifyZeroInteractions(this.dataHolder); }
@SuppressWarnings("unchecked") @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }
ClinicalStatusController implements PatientDataController<String> { @SuppressWarnings("unchecked") @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); } }
ClinicalStatusController implements PatientDataController<String> { @SuppressWarnings("unchecked") @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  }
ClinicalStatusController implements PatientDataController<String> { @SuppressWarnings("unchecked") @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override PatientData<String> load(Patient patient); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override void writeJSON(Patient patient, JSONObject json); @SuppressWarnings("unchecked") @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override PatientData<String> readJSON(JSONObject json); }
ClinicalStatusController implements PatientDataController<String> { @SuppressWarnings("unchecked") @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override PatientData<String> load(Patient patient); @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override void writeJSON(Patient patient, JSONObject json); @SuppressWarnings("unchecked") @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); @Override PatientData<String> readJSON(JSONObject json);  }