@Test public void test_getDesignation() { DesignationGetRequest criteria = new DesignationGetRequest().builder().tenantId("default").code("100").active(true).build(); when(designationRepository.findForCriteria(criteria)).thenReturn(designations); List<Designation> result = designationService.getDesignations(criteria); assertThat(result).isEqualTo(designations); }
public List<Designation> getDesignations(DesignationGetRequest designationGetRequest) { return designationRepository.findForCriteria(designationGetRequest); }
DesignationService { public List<Designation> getDesignations(DesignationGetRequest designationGetRequest) { return designationRepository.findForCriteria(designationGetRequest); } }
DesignationService { public List<Designation> getDesignations(DesignationGetRequest designationGetRequest) { return designationRepository.findForCriteria(designationGetRequest); }  }
DesignationService { public List<Designation> getDesignations(DesignationGetRequest designationGetRequest) { return designationRepository.findForCriteria(designationGetRequest); }  List<Designation> getDesignations(DesignationGetRequest designationGetRequest); List<Designation> getDesignationsFromMDMS(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); MdmsCriteriaReq prepareSearchRequestForDesignation(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); ResponseEntity<?> createDesignation(DesignationRequest designationRequest); ResponseEntity<?> updateDesignation(DesignationRequest designationRequest); ResponseEntity<?> getSuccessResponseForCreate(List<Designation> designationList,
			RequestInfo requestInfo); void create(DesignationRequest designationRequest); void update(DesignationRequest designationRequest); }
DesignationService { public List<Designation> getDesignations(DesignationGetRequest designationGetRequest) { return designationRepository.findForCriteria(designationGetRequest); }  List<Designation> getDesignations(DesignationGetRequest designationGetRequest); List<Designation> getDesignationsFromMDMS(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); MdmsCriteriaReq prepareSearchRequestForDesignation(RequestInfo requestInfo, DesignationGetRequest designationGetRequest); ResponseEntity<?> createDesignation(DesignationRequest designationRequest); ResponseEntity<?> updateDesignation(DesignationRequest designationRequest); ResponseEntity<?> getSuccessResponseForCreate(List<Designation> designationList,
			RequestInfo requestInfo); void create(DesignationRequest designationRequest); void update(DesignationRequest designationRequest);  }