@Test public void saveDoesNothingWhenDataHasWrongFormat() { final PatientData<List<String>> data = spy(new IndexedPatientData<>(this.component.getName(), Collections.emptyList())); doReturn(data).when(this.patient).getData(this.component.getName()); this.component.save(this.patient, PatientWritePolicy.UPDATE); verifyZeroInteractions(this.dataHolder); }
@Override public String getName() { return "patientName"; }
PatientNameController extends AbstractSimpleController { @Override public String getName() { return "patientName"; } }
PatientNameController extends AbstractSimpleController { @Override public String getName() { return "patientName"; }  }
PatientNameController extends AbstractSimpleController { @Override public String getName() { return "patientName"; }  @Override String getName(); }
PatientNameController extends AbstractSimpleController { @Override public String getName() { return "patientName"; }  @Override String getName();  }