@Test public void testSearch() { List<GlCodeMaster> glCodeMasters = new ArrayList<>(); glCodeMasters.add(getGlCodeMaster()); GlCodeMasterResponse glCodeMasterResponse = new GlCodeMasterResponse(); glCodeMasterResponse.setGlCodeMasters(glCodeMasters); when(glCodeMasterRepository.findForCriteria(Matchers.any(GlCodeMasterCriteria.class))) .thenReturn(glCodeMasters); GlCodeMasterCriteria taxHeadMasterCriteria = GlCodeMasterCriteria.builder().tenantId("ap.kurnool").build(); assertEquals(glCodeMasterResponse, glCodeMasterService.getGlCodes(taxHeadMasterCriteria, new RequestInfo())); }
public GlCodeMasterResponse getGlCodes(GlCodeMasterCriteria searchGlCode, RequestInfo requestInfo) { logger.info("GlCodeMasterService getTaxHeads"); List<GlCodeMaster> glCodeMaster= glCodeMasterRepository.findForCriteria(searchGlCode); return getGlCodeMasterResponse(glCodeMaster,requestInfo); }
GlCodeMasterService { public GlCodeMasterResponse getGlCodes(GlCodeMasterCriteria searchGlCode, RequestInfo requestInfo) { logger.info("GlCodeMasterService getTaxHeads"); List<GlCodeMaster> glCodeMaster= glCodeMasterRepository.findForCriteria(searchGlCode); return getGlCodeMasterResponse(glCodeMaster,requestInfo); } }
GlCodeMasterService { public GlCodeMasterResponse getGlCodes(GlCodeMasterCriteria searchGlCode, RequestInfo requestInfo) { logger.info("GlCodeMasterService getTaxHeads"); List<GlCodeMaster> glCodeMaster= glCodeMasterRepository.findForCriteria(searchGlCode); return getGlCodeMasterResponse(glCodeMaster,requestInfo); }  }
GlCodeMasterService { public GlCodeMasterResponse getGlCodes(GlCodeMasterCriteria searchGlCode, RequestInfo requestInfo) { logger.info("GlCodeMasterService getTaxHeads"); List<GlCodeMaster> glCodeMaster= glCodeMasterRepository.findForCriteria(searchGlCode); return getGlCodeMasterResponse(glCodeMaster,requestInfo); }  GlCodeMasterResponse getGlCodes(GlCodeMasterCriteria searchGlCode, RequestInfo requestInfo); GlCodeMasterResponse create(GlCodeMasterRequest glCodeMasterRequest); GlCodeMasterResponse createAsync(GlCodeMasterRequest glCodeMasterRequest); GlCodeMasterResponse update(GlCodeMasterRequest request); GlCodeMasterResponse updateAsync(GlCodeMasterRequest request); }
GlCodeMasterService { public GlCodeMasterResponse getGlCodes(GlCodeMasterCriteria searchGlCode, RequestInfo requestInfo) { logger.info("GlCodeMasterService getTaxHeads"); List<GlCodeMaster> glCodeMaster= glCodeMasterRepository.findForCriteria(searchGlCode); return getGlCodeMasterResponse(glCodeMaster,requestInfo); }  GlCodeMasterResponse getGlCodes(GlCodeMasterCriteria searchGlCode, RequestInfo requestInfo); GlCodeMasterResponse create(GlCodeMasterRequest glCodeMasterRequest); GlCodeMasterResponse createAsync(GlCodeMasterRequest glCodeMasterRequest); GlCodeMasterResponse update(GlCodeMasterRequest request); GlCodeMasterResponse updateAsync(GlCodeMasterRequest request);  }