@Test public void saveNullsAllSavedDataWhenPatientDataIsNullAndPolicyIsReplace() { when(this.patient.getData(this.component.getName())).thenReturn(null); this.component.save(this.patient, PatientWritePolicy.REPLACE); verify(this.doc, times(1)).getXObject(Patient.CLASS_REFERENCE, true, this.context); verifyNoMoreInteractions(this.doc); verify(this.dataHolder, times(1)).set(GESTATION, null, this.context); verify(this.dataHolder, times(1)).set(MULTIPLE_GESTATION, null, this.context); verify(this.dataHolder, times(1)).set(GESTATION_TWIN, null, this.context); verify(this.dataHolder, times(1)).set(ASSISTED_REPRODUCTION_IUI, null, this.context); verify(this.dataHolder, times(1)).set(IVF, null, this.context); verify(this.dataHolder, times(1)).set(ICSI, null, this.context); verify(this.dataHolder, times(1)).set(ASSISTED_REPRODUCTION_FERTILITY_MEDS, null, this.context); verify(this.dataHolder, times(1)).set(ASSISTED_REPRODUCTION_SURROGACY, null, this.context); verify(this.dataHolder, times(1)).set(ASSISTED_REPRODUCTION_DONOR_EGG, null, this.context); verify(this.dataHolder, times(1)).set(ASSISTED_REPRODUCTION_DONOR_SPERM, null, this.context); verifyNoMoreInteractions(this.dataHolder); }
@Override public String getName() { return "prenatalPerinatalHistory"; }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override public String getName() { return "prenatalPerinatalHistory"; } }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override public String getName() { return "prenatalPerinatalHistory"; }  }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override public String getName() { return "prenatalPerinatalHistory"; }  @Override String getName(); }
PrenatalPerinatalHistoryController extends AbstractComplexController<String> { @Override public String getName() { return "prenatalPerinatalHistory"; }  @Override String getName();  }