@Test public void shouldMapPeriodStartDateWhenMalariaIsNotDefined() throws Exception { malariaProgram = null; malariaProgram = mapper.map(malariaDataReportViewModel, malariaProgram); assertThat(malariaProgram.getStartPeriodDate(), is(malariaDataReportViewModel.getStartPeriodDate())); }
public MalariaProgram map(MalariaDataReportViewModel malariaDataReportViewModel, MalariaProgram malariaProgram) throws LMISException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { if (malariaProgram == null) { return generateMalariaProgramFromScratch(malariaDataReportViewModel); } return generateMalariaProgramFrom(malariaDataReportViewModel, malariaProgram); }
MalariaDataReportViewModelToMalariaProgramMapper { public MalariaProgram map(MalariaDataReportViewModel malariaDataReportViewModel, MalariaProgram malariaProgram) throws LMISException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { if (malariaProgram == null) { return generateMalariaProgramFromScratch(malariaDataReportViewModel); } return generateMalariaProgramFrom(malariaDataReportViewModel, malariaProgram); } }
MalariaDataReportViewModelToMalariaProgramMapper { public MalariaProgram map(MalariaDataReportViewModel malariaDataReportViewModel, MalariaProgram malariaProgram) throws LMISException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { if (malariaProgram == null) { return generateMalariaProgramFromScratch(malariaDataReportViewModel); } return generateMalariaProgramFrom(malariaDataReportViewModel, malariaProgram); }  }
MalariaDataReportViewModelToMalariaProgramMapper { public MalariaProgram map(MalariaDataReportViewModel malariaDataReportViewModel, MalariaProgram malariaProgram) throws LMISException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { if (malariaProgram == null) { return generateMalariaProgramFromScratch(malariaDataReportViewModel); } return generateMalariaProgramFrom(malariaDataReportViewModel, malariaProgram); }  MalariaProgram map(MalariaDataReportViewModel malariaDataReportViewModel, MalariaProgram malariaProgram); }
MalariaDataReportViewModelToMalariaProgramMapper { public MalariaProgram map(MalariaDataReportViewModel malariaDataReportViewModel, MalariaProgram malariaProgram) throws LMISException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { if (malariaProgram == null) { return generateMalariaProgramFromScratch(malariaDataReportViewModel); } return generateMalariaProgramFrom(malariaDataReportViewModel, malariaProgram); }  MalariaProgram map(MalariaDataReportViewModel malariaDataReportViewModel, MalariaProgram malariaProgram);  }