@Test public void saveDoesNothingWhenPatientDataHasWrongFormat() { when(this.patient.getData(CONTROLLER_NAME)) .thenReturn(new DictionaryPatientData<>(CONTROLLER_NAME, Collections.emptyMap())); this.component.save(this.patient); verifyZeroInteractions(this.doc); }
@Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }
VariantListController extends AbstractComplexController<Map<String, String>> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); } }
VariantListController extends AbstractComplexController<Map<String, String>> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  }
VariantListController extends AbstractComplexController<Map<String, String>> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override PatientData<Map<String, String>> load(Patient patient); @SuppressWarnings("checkstyle:CyclomaticComplexity") @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override PatientData<Map<String, String>> readJSON(JSONObject json); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy); }
VariantListController extends AbstractComplexController<Map<String, String>> { @Override public void save(Patient patient) { save(patient, PatientWritePolicy.UPDATE); }  @Override String getName(); @Override PatientData<Map<String, String>> load(Patient patient); @SuppressWarnings("checkstyle:CyclomaticComplexity") @Override void writeJSON(Patient patient, JSONObject json, Collection<String> selectedFieldNames); @Override PatientData<Map<String, String>> readJSON(JSONObject json); @Override void save(Patient patient); @Override void save(@Nonnull final Patient patient, @Nonnull final PatientWritePolicy policy);  }