@Test public void saveSetsAllPropertiesToNullWhenPatientDataIsNullAndPolicyIsReplace() { when(this.patient.getData(this.component.getName())).thenReturn(null); this.component.save(this.patient, PatientWritePolicy.REPLACE); verify(this.doc, times(1)).getXObject(eq(Patient.CLASS_REFERENCE), eq(true), any()); verifyNoMoreInteractions(this.doc); verify(this.dataHolder, times(1)).setStringValue(INDICATION_FOR_REFERRAL, null); verify(this.dataHolder, times(1)).setStringValue(FAMILY_HISTORY, null); verify(this.dataHolder, times(1)).setStringValue(PRENATAL_DEVELOPMENT, null); verify(this.dataHolder, times(1)).setStringValue(MEDICAL_HISTORY, null); verify(this.dataHolder, times(1)).setStringValue(DIAGNOSIS_NOTES, null); verify(this.dataHolder, times(1)).setStringValue(GENETIC_NOTES, null); verifyNoMoreInteractions(this.dataHolder); }
@Override public String getName() { return "notes"; }
TextNotesController extends AbstractSimpleController { @Override public String getName() { return "notes"; } }
TextNotesController extends AbstractSimpleController { @Override public String getName() { return "notes"; }  }
TextNotesController extends AbstractSimpleController { @Override public String getName() { return "notes"; }  @Override String getName(); }
TextNotesController extends AbstractSimpleController { @Override public String getName() { return "notes"; }  @Override String getName();  }