@Test public void shouldReturnFormulaValidatedFlag() throws Exception { boolean expectedFormulaValidated = true; Long programId = 1L; Program program = new Program(programId); when(programRnrColumnMapper.isFormulaValidationRequired(program)).thenReturn(expectedFormulaValidated); boolean formulaValidatedResult = rnrRepository.isFormulaValidationRequired(program); assertThat(formulaValidatedResult, is(expectedFormulaValidated)); }
public boolean isFormulaValidationRequired(Program program) { return programRnrColumnMapper.isFormulaValidationRequired(program); }
RnrTemplateRepository { public boolean isFormulaValidationRequired(Program program) { return programRnrColumnMapper.isFormulaValidationRequired(program); } }
RnrTemplateRepository { public boolean isFormulaValidationRequired(Program program) { return programRnrColumnMapper.isFormulaValidationRequired(program); }  }
RnrTemplateRepository { public boolean isFormulaValidationRequired(Program program) { return programRnrColumnMapper.isFormulaValidationRequired(program); }  void saveProgramRnrTemplate(ProgramRnrTemplate programTemplate); List<RnrColumn> fetchColumnsForRequisition(Long programId); List<RnrColumn> fetchRnrTemplateColumnsOrMasterColumns(Long programId); boolean isFormulaValidationRequired(Program program); }
RnrTemplateRepository { public boolean isFormulaValidationRequired(Program program) { return programRnrColumnMapper.isFormulaValidationRequired(program); }  void saveProgramRnrTemplate(ProgramRnrTemplate programTemplate); List<RnrColumn> fetchColumnsForRequisition(Long programId); List<RnrColumn> fetchRnrTemplateColumnsOrMasterColumns(Long programId); boolean isFormulaValidationRequired(Program program);  }