@Test public void saveAliveWhenAliveWithUpdatePolicy() { PatientData<String> lifeStatus = new SimpleValuePatientData<>(DATA_NAME, ALIVE); doReturn(lifeStatus).when(this.patient).getData(DATA_NAME); this.component.save(this.patient); verify(this.data).setStringValue(DATA_NAME, ALIVE); }
@Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }
LifeStatusController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); } }
LifeStatusController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  }
LifeStatusController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @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); @Override String getName(); }
LifeStatusController implements PatientDataController<String> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @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); @Override String getName();  }