@Test public void shouldGetRequisitionGroupForFacilityAndProgram() { Facility facility = new Facility(1L); Program program = new Program(1L); repository.getRequisitionGroupForProgramAndFacility(program, facility); verify(mapper).getRequisitionGroupForProgramAndFacility(program, facility); }
public RequisitionGroup getRequisitionGroupForProgramAndFacility(Program program, Facility facility) { return mapper.getRequisitionGroupForProgramAndFacility(program, facility); }
RequisitionGroupRepository { public RequisitionGroup getRequisitionGroupForProgramAndFacility(Program program, Facility facility) { return mapper.getRequisitionGroupForProgramAndFacility(program, facility); } }
RequisitionGroupRepository { public RequisitionGroup getRequisitionGroupForProgramAndFacility(Program program, Facility facility) { return mapper.getRequisitionGroupForProgramAndFacility(program, facility); } @Autowired  RequisitionGroupRepository(RequisitionGroupMapper requisitionGroupMapper, CommaSeparator commaSeparator); }
RequisitionGroupRepository { public RequisitionGroup getRequisitionGroupForProgramAndFacility(Program program, Facility facility) { return mapper.getRequisitionGroupForProgramAndFacility(program, facility); } @Autowired  RequisitionGroupRepository(RequisitionGroupMapper requisitionGroupMapper, CommaSeparator commaSeparator); void insert(RequisitionGroup requisitionGroup); List<RequisitionGroup> getRequisitionGroups(List<SupervisoryNode> supervisoryNodes); RequisitionGroup getRequisitionGroupForProgramAndFacility(Program program, Facility facility); RequisitionGroup getByCode(RequisitionGroup requisitionGroup); void update(RequisitionGroup requisitionGroup); List<RequisitionGroup> searchByGroupName(String searchParam, Pagination pagination); List<RequisitionGroup> searchByNodeName(String searchParam, Pagination pagination); Integer getTotalRecordsForSearchOnGroupName(String searchParam); Integer getTotalRecordsForSearchOnNodeName(String searchParam); RequisitionGroup getBy(Long id); }
RequisitionGroupRepository { public RequisitionGroup getRequisitionGroupForProgramAndFacility(Program program, Facility facility) { return mapper.getRequisitionGroupForProgramAndFacility(program, facility); } @Autowired  RequisitionGroupRepository(RequisitionGroupMapper requisitionGroupMapper, CommaSeparator commaSeparator); void insert(RequisitionGroup requisitionGroup); List<RequisitionGroup> getRequisitionGroups(List<SupervisoryNode> supervisoryNodes); RequisitionGroup getRequisitionGroupForProgramAndFacility(Program program, Facility facility); RequisitionGroup getByCode(RequisitionGroup requisitionGroup); void update(RequisitionGroup requisitionGroup); List<RequisitionGroup> searchByGroupName(String searchParam, Pagination pagination); List<RequisitionGroup> searchByNodeName(String searchParam, Pagination pagination); Integer getTotalRecordsForSearchOnGroupName(String searchParam); Integer getTotalRecordsForSearchOnNodeName(String searchParam); RequisitionGroup getBy(Long id);  }