@Test public void shouldTransformFullCoverageDTO() throws Exception { Long facilityVisitId = 1L; Reading femaleHealthCenterReading = mock(Reading.class); Reading femaleMobileBrigadeReading = mock(Reading.class); Reading maleMobileBrigadeReading = mock(Reading.class); Reading maleHealthCenterReading = mock(Reading.class); VaccinationFullCoverageDTO vaccinationFullCoverageDTO = new VaccinationFullCoverageDTO(facilityVisitId, femaleHealthCenterReading, femaleMobileBrigadeReading, maleHealthCenterReading, maleMobileBrigadeReading); vaccinationFullCoverageDTO.transform(); verify(femaleHealthCenterReading).parsePositiveInt(); verify(femaleMobileBrigadeReading).parsePositiveInt(); verify(maleHealthCenterReading).parsePositiveInt(); verify(maleMobileBrigadeReading).parsePositiveInt(); }
public VaccinationFullCoverage transform() { VaccinationFullCoverage vaccinationFullCoverage = new VaccinationFullCoverage(this.facilityVisitId, this.femaleHealthCenterReading.parsePositiveInt(), this.femaleMobileBrigadeReading.parsePositiveInt(), this.maleHealthCenterReading.parsePositiveInt(), this.maleMobileBrigadeReading.parsePositiveInt()); vaccinationFullCoverage.setModifiedBy(this.modifiedBy); vaccinationFullCoverage.setCreatedBy(this.createdBy); return vaccinationFullCoverage; }
VaccinationFullCoverageDTO extends BaseModel { public VaccinationFullCoverage transform() { VaccinationFullCoverage vaccinationFullCoverage = new VaccinationFullCoverage(this.facilityVisitId, this.femaleHealthCenterReading.parsePositiveInt(), this.femaleMobileBrigadeReading.parsePositiveInt(), this.maleHealthCenterReading.parsePositiveInt(), this.maleMobileBrigadeReading.parsePositiveInt()); vaccinationFullCoverage.setModifiedBy(this.modifiedBy); vaccinationFullCoverage.setCreatedBy(this.createdBy); return vaccinationFullCoverage; } }
VaccinationFullCoverageDTO extends BaseModel { public VaccinationFullCoverage transform() { VaccinationFullCoverage vaccinationFullCoverage = new VaccinationFullCoverage(this.facilityVisitId, this.femaleHealthCenterReading.parsePositiveInt(), this.femaleMobileBrigadeReading.parsePositiveInt(), this.maleHealthCenterReading.parsePositiveInt(), this.maleMobileBrigadeReading.parsePositiveInt()); vaccinationFullCoverage.setModifiedBy(this.modifiedBy); vaccinationFullCoverage.setCreatedBy(this.createdBy); return vaccinationFullCoverage; }  }
VaccinationFullCoverageDTO extends BaseModel { public VaccinationFullCoverage transform() { VaccinationFullCoverage vaccinationFullCoverage = new VaccinationFullCoverage(this.facilityVisitId, this.femaleHealthCenterReading.parsePositiveInt(), this.femaleMobileBrigadeReading.parsePositiveInt(), this.maleHealthCenterReading.parsePositiveInt(), this.maleMobileBrigadeReading.parsePositiveInt()); vaccinationFullCoverage.setModifiedBy(this.modifiedBy); vaccinationFullCoverage.setCreatedBy(this.createdBy); return vaccinationFullCoverage; }  VaccinationFullCoverage transform(); }
VaccinationFullCoverageDTO extends BaseModel { public VaccinationFullCoverage transform() { VaccinationFullCoverage vaccinationFullCoverage = new VaccinationFullCoverage(this.facilityVisitId, this.femaleHealthCenterReading.parsePositiveInt(), this.femaleMobileBrigadeReading.parsePositiveInt(), this.maleHealthCenterReading.parsePositiveInt(), this.maleMobileBrigadeReading.parsePositiveInt()); vaccinationFullCoverage.setModifiedBy(this.modifiedBy); vaccinationFullCoverage.setCreatedBy(this.createdBy); return vaccinationFullCoverage; }  VaccinationFullCoverage transform();  }